Home | History | Annotate | Download | only in ime

Lines Matching refs:XKeyboard

5 #include "chromeos/ime/xkeyboard.h"
29 xkey_.reset(XKeyboard::Create());
36 scoped_ptr<XKeyboard> xkey_;
52 EXPECT_FALSE(XKeyboard::CheckLayoutNameForTesting("us!"));
53 EXPECT_FALSE(XKeyboard::CheckLayoutNameForTesting("us; /bin/sh"));
54 EXPECT_TRUE(XKeyboard::CheckLayoutNameForTesting("ab-c_12"));
57 EXPECT_FALSE(XKeyboard::CheckLayoutNameForTesting("US"));
61 EXPECT_TRUE(XKeyboard::CheckLayoutNameForTesting(std::string(3, c)));
66 EXPECT_TRUE(XKeyboard::CheckLayoutNameForTesting(std::string(3, c)));
70 EXPECT_TRUE(XKeyboard::CheckLayoutNameForTesting("us(dvorak)"));
71 EXPECT_TRUE(XKeyboard::CheckLayoutNameForTesting("jp"));
178 const bool state = XKeyboard::GetAutoRepeatEnabledForTesting();
179 XKeyboard::SetAutoRepeatEnabled(!state);
180 EXPECT_EQ(!state, XKeyboard::GetAutoRepeatEnabledForTesting());
182 XKeyboard::SetAutoRepeatEnabled(state);
183 EXPECT_EQ(state, XKeyboard::GetAutoRepeatEnabledForTesting());
192 EXPECT_TRUE(XKeyboard::GetAutoRepeatRateForTesting(&rate));
197 EXPECT_TRUE(XKeyboard::SetAutoRepeatRate(tmp));
198 EXPECT_TRUE(XKeyboard::GetAutoRepeatRateForTesting(&tmp));
203 EXPECT_TRUE(XKeyboard::SetAutoRepeatRate(rate));
204 EXPECT_TRUE(XKeyboard::GetAutoRepeatRateForTesting(&tmp));