Home
last modified time | relevance | path

Searched refs:key_converter (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/ui/events/keycodes/dom4/
Dkeycode_converter_unittest.cc31 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in TEST() local
34 key_converter->GetKeycodeMapForTest(); in TEST()
35 EXPECT_EQ(key_converter->InvalidUsbKeycode(), keycode_map[0].usb_keycode); in TEST()
36 EXPECT_EQ(key_converter->InvalidNativeKeycode(), in TEST()
38 EXPECT_STREQ(key_converter->InvalidKeyboardEventCode(), "Unidentified"); in TEST()
39 EXPECT_EQ(key_converter->InvalidNativeKeycode(), in TEST()
40 key_converter->CodeToNativeKeycode("Unidentified")); in TEST()
45 size_t numEntries = key_converter->NumKeycodeMapEntriesForTest(); in TEST()
49 if (entry->native_keycode == key_converter->InvalidNativeKeycode()) in TEST()
54 key_converter->UsbKeycodeToNativeKeycode(entry->usb_keycode)); in TEST()
[all …]
/external/chromium_org/content/renderer/pepper/
Dusb_key_code_conversion_linux.cc20 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in UsbKeyCodeForKeyboardEvent() local
21 return key_converter->NativeKeycodeToUsbKeycode(key_event.nativeKeyCode); in UsbKeyCodeForKeyboardEvent()
25 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in CodeForKeyboardEvent() local
26 return key_converter->NativeKeycodeToCode(key_event.nativeKeyCode); in CodeForKeyboardEvent()
Dusb_key_code_conversion_mac.cc16 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in UsbKeyCodeForKeyboardEvent() local
17 return key_converter->NativeKeycodeToUsbKeycode(key_event.nativeKeyCode); in UsbKeyCodeForKeyboardEvent()
21 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in CodeForKeyboardEvent() local
22 return key_converter->NativeKeycodeToCode(key_event.nativeKeyCode); in CodeForKeyboardEvent()
Dusb_key_code_conversion_win.cc21 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in UsbKeyCodeForKeyboardEvent() local
22 return key_converter->NativeKeycodeToUsbKeycode(scancode); in UsbKeyCodeForKeyboardEvent()
31 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in CodeForKeyboardEvent() local
32 return key_converter->NativeKeycodeToCode(scancode); in CodeForKeyboardEvent()
/external/chromium_org/content/public/test/
Dbrowser_test_utils.cc279 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in SimulateKeyPressWithCode() local
280 int native_key_code = key_converter->CodeToNativeKeycode(code); in SimulateKeyPressWithCode()
292 key_converter->CodeToNativeKeycode("ControlLeft"), in SimulateKeyPressWithCode()
302 key_converter->CodeToNativeKeycode("ShiftLeft"), in SimulateKeyPressWithCode()
312 key_converter->CodeToNativeKeycode("AltLeft"), in SimulateKeyPressWithCode()
322 key_converter->CodeToNativeKeycode("OSLeft"), in SimulateKeyPressWithCode()
354 key_converter->CodeToNativeKeycode("ControlLeft"), in SimulateKeyPressWithCode()
364 key_converter->CodeToNativeKeycode("ShiftLeft"), in SimulateKeyPressWithCode()
374 key_converter->CodeToNativeKeycode("AltLeft"), in SimulateKeyPressWithCode()
384 key_converter->CodeToNativeKeycode("OSLeft"), in SimulateKeyPressWithCode()
/external/chromium_org/remoting/host/
Dinput_injector_mac.cc147 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in InjectKeyEvent() local
148 int keycode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode()); in InjectKeyEvent()
154 if (keycode == key_converter->InvalidNativeKeycode()) in InjectKeyEvent()
Dinput_injector_win.cc181 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in HandleKey() local
182 int scancode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode()); in HandleKey()
187 if (scancode == key_converter->InvalidNativeKeycode()) in HandleKey()
Dinput_injector_linux.cc218 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in InjectKeyEvent() local
219 int keycode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode()); in InjectKeyEvent()
225 if (keycode == key_converter->InvalidNativeKeycode()) in InjectKeyEvent()
/external/chromium_org/remoting/client/plugin/
Dpepper_input_handler.cc54 ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); in GetUsbKeyCode() local
55 return key_converter->CodeToUsbKeycode(codestr.c_str()); in GetUsbKeyCode()
/external/chromium_org/chrome/
Dchrome_tests.gypi737 'test/chromedriver/key_converter.cc',
738 'test/chromedriver/key_converter.h',