/external/chromium_org/content/renderer/pepper/ |
D | usb_key_code_conversion_win.cc | 15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument 17 int scancode = (key_event.nativeKeyCode >> 16) & 0x000000FF; in UsbKeyCodeForKeyboardEvent() 18 if ((key_event.nativeKeyCode & (1 << 24)) != 0) in UsbKeyCodeForKeyboardEvent() 24 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument 26 int scancode = (key_event.nativeKeyCode >> 16) & 0x000000FF; in CodeForKeyboardEvent() 27 if ((key_event.nativeKeyCode & (1 << 24)) != 0) in CodeForKeyboardEvent()
|
D | usb_key_code_conversion_linux.cc | 15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument 21 key_event.nativeKeyCode); in UsbKeyCodeForKeyboardEvent() 24 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument 25 return ui::KeycodeConverter::NativeKeycodeToCode(key_event.nativeKeyCode); in CodeForKeyboardEvent()
|
D | usb_key_code_conversion_mac.cc | 15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument 17 key_event.nativeKeyCode); in UsbKeyCodeForKeyboardEvent() 20 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument 21 return ui::KeycodeConverter::NativeKeycodeToCode(key_event.nativeKeyCode); in CodeForKeyboardEvent()
|
D | event_conversion.cc | 133 const WebKeyboardEvent& key_event = in AppendKeyEvent() local 136 result.event_modifiers = key_event.modifiers; in AppendKeyEvent() 137 result.key_code = key_event.windowsKeyCode; in AppendKeyEvent() 138 result.code = CodeForKeyboardEvent(key_event); in AppendKeyEvent() 144 const WebKeyboardEvent& key_event = in AppendCharEvent() local 155 key_event.text[utf16_char_count]) in AppendCharEvent() 159 base::i18n::UTF16CharIterator iter(key_event.text, utf16_char_count); in AppendCharEvent() 162 result.event_modifiers = key_event.modifiers; in AppendCharEvent() 363 WebKeyboardEvent* key_event = new WebKeyboardEvent(); in BuildKeyEvent() local 366 key_event->type = WebInputEvent::RawKeyDown; in BuildKeyEvent() [all …]
|
D | usb_key_code_conversion.cc | 15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument 19 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument
|
D | usb_key_code_conversion.h | 21 uint32_t UsbKeyCodeForKeyboardEvent(const blink::WebKeyboardEvent& key_event); 25 const char* CodeForKeyboardEvent(const blink::WebKeyboardEvent& key_event);
|
/external/chromium_org/mojo/services/public/cpp/input_events/lib/ |
D | input_events_type_converters.cc | 120 const ui::KeyEvent* key_event = static_cast<const ui::KeyEvent*>(&input); in Convert() local 122 key_data->key_code = key_event->GetConflatedWindowsKeyCode(); in Convert() 123 key_data->native_key_code = key_event->platform_keycode(); in Convert() 124 key_data->is_char = key_event->is_char(); in Convert() 125 key_data->character = key_event->GetCharacter(); in Convert() 127 if (key_event->extended_key_event_data()) { in Convert() 130 key_event->extended_key_event_data()); in Convert() 137 key_event->GetLocatedWindowsKeyboardCode()); in Convert() 138 key_data->text = key_event->GetText(); in Convert() 139 key_data->unmodified_text = key_event->GetUnmodifiedText(); in Convert() [all …]
|
/external/chromium_org/chrome/browser/chromeos/events/ |
D | event_rewriter.cc | 108 bool IsExtensionCommandRegistered(const ui::KeyEvent& key_event) { in IsExtensionCommandRegistered() argument 123 int modifiers = key_event.flags() & (ui::EF_SHIFT_DOWN | ui::EF_CONTROL_DOWN | in IsExtensionCommandRegistered() 125 ui::Accelerator accelerator(key_event.key_code(), modifiers); in IsExtensionCommandRegistered() 222 const ui::KeyEvent& key_event, in BuildRewrittenKeyEvent() argument 228 XEvent* xev = key_event.native_event(); in BuildRewrittenKeyEvent() 243 if (key_event.key_code() != key_code) { in BuildRewrittenKeyEvent() 272 rewritten_key_event = new ui::KeyEvent(key_event); in BuildRewrittenKeyEvent() 384 const ui::KeyEvent& key_event, in RewriteKeyEvent() argument 386 if (IsExtensionCommandRegistered(key_event)) in RewriteKeyEvent() 388 if (key_event.source_device_id() != ui::ED_UNKNOWN_DEVICE) in RewriteKeyEvent() [all …]
|
D | keyboard_driven_event_rewriter.cc | 69 const ui::KeyEvent& key_event = static_cast<const ui::KeyEvent&>(event); in Rewrite() local 70 ui::KeyboardCode key_code = key_event.key_code(); in Rewrite() 82 key_event, in Rewrite() 83 key_event.key_code(), in Rewrite()
|
/external/chromium_org/content/browser/renderer_host/ |
D | native_web_keyboard_event_android.cc | 13 jobject NewGlobalRefForKeyEvent(jobject key_event) { in NewGlobalRefForKeyEvent() argument 14 if (key_event == NULL) return NULL; in NewGlobalRefForKeyEvent() 15 return base::android::AttachCurrentThread()->NewGlobalRef(key_event); in NewGlobalRefForKeyEvent() 18 void DeleteGlobalRefForKeyEvent(jobject key_event) { in DeleteGlobalRefForKeyEvent() argument 19 if (key_event != NULL) in DeleteGlobalRefForKeyEvent() 20 base::android::AttachCurrentThread()->DeleteGlobalRef(key_event); in DeleteGlobalRefForKeyEvent()
|
/external/chromium_org/ui/wm/core/ |
D | accelerator_filter.cc | 68 ui::Accelerator CreateAcceleratorFromKeyEvent(const ui::KeyEvent& key_event) { in CreateAcceleratorFromKeyEvent() argument 72 ui::Accelerator accelerator(key_event.key_code(), in CreateAcceleratorFromKeyEvent() 73 key_event.flags() & kModifierFlagMask); in CreateAcceleratorFromKeyEvent() 74 if (key_event.type() == ui::ET_KEY_RELEASED) in CreateAcceleratorFromKeyEvent() 76 accelerator.set_is_repeat(key_event.IsRepeat()); in CreateAcceleratorFromKeyEvent()
|
D | nested_accelerator_dispatcher_win.cc | 45 ui::KeyEvent key_event(event); in Dispatch() local 46 ui::Accelerator accelerator = CreateAcceleratorFromKeyEvent(key_event); in Dispatch()
|
/external/chromium_org/chrome/test/chromedriver/ |
D | keycode_text_conversion_x.cc | 192 XKeyEvent* key_event = &event.xkey; in ConvertKeyCodeToText() local 200 key_event->display = display; in ConvertKeyCodeToText() 201 key_event->keycode = x_key_code; in ConvertKeyCodeToText() 203 key_event->state |= ShiftMask; in ConvertKeyCodeToText() 205 key_event->state |= ControlMask; in ConvertKeyCodeToText() 211 key_event->state |= x_modifier; in ConvertKeyCodeToText() 215 key_event->state |= x_modifier; in ConvertKeyCodeToText() 219 key_event->state |= x_modifier; in ConvertKeyCodeToText() 221 key_event->type = KeyPress; in ConvertKeyCodeToText()
|
/external/chromium_org/chrome/browser/chromeos/input_method/ |
D | input_method_engine_browsertests.cc | 183 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE); in IN_PROC_BROWSER_TEST_P() local 184 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P() 265 ui::KeyEvent key_event( in IN_PROC_BROWSER_TEST_P() local 267 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P() 281 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local 285 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P() 299 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local 303 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P() 317 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local 321 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P() [all …]
|
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/ |
D | braille_display_private_apitest.cc | 348 KeyEvent key_event; in IN_PROC_BROWSER_TEST_F() local 349 key_event.command = KEY_COMMAND_LINE_UP; in IN_PROC_BROWSER_TEST_F() 350 signin_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F() 351 user_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F() 358 signin_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F() 359 user_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F() 365 signin_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F() 366 user_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
|
/external/chromium_org/content/child/npapi/ |
D | plugin_web_event_converter_mac.mm | 75 const WebKeyboardEvent& key_event) { 76 cocoa_event_.data.key.keyCode = key_event.nativeKeyCode; 78 cocoa_event_.data.key.modifierFlags |= CocoaModifiers(key_event); 82 if (KeyIsModifier(key_event.nativeKeyCode)) { 88 [NSString stringWithFormat:@"%S", key_event.text]); 91 [NSString stringWithFormat:@"%S", key_event.unmodifiedText]); 93 if (key_event.modifiers & WebInputEvent::IsAutoRepeat) 96 switch (key_event.type) {
|
/external/chromium_org/ash/accelerators/ |
D | accelerator_delegate.cc | 22 bool AcceleratorDelegate::ProcessAccelerator(const ui::KeyEvent& key_event, in ProcessAccelerator() argument 29 if (key_type == KEY_TYPE_SYSTEM && !CanConsumeSystemKeys(key_event)) { in ProcessAccelerator() 35 if (!ShouldProcessAcceleratorNow(key_event, accelerator)) in ProcessAccelerator()
|
D | magnifier_key_scroller_unittest.cc | 24 key_event.reset(new ui::KeyEvent( in OnKeyEvent() 28 const ui::KeyEvent* event() const { return key_event.get(); } in event() 29 void reset() { key_event.reset(); } in reset() 32 scoped_ptr<ui::KeyEvent> key_event; member in ash::__anon5f26dcc60111::KeyEventDelegate
|
/external/chromium_org/native_client_sdk/src/examples/api/input_event/ |
D | input_event.cc | 192 pp::KeyboardInputEvent key_event(event); in HandleInputEvent() local 195 << " modifier:" << ModifierToString(key_event.GetModifiers()) in HandleInputEvent() 196 << " key_code:" << key_event.GetKeyCode() in HandleInputEvent() 197 << " time:" << key_event.GetTimeStamp() in HandleInputEvent() 198 << " text:" << key_event.GetCharacterText().DebugString(); in HandleInputEvent()
|
/external/chromium_org/remoting/client/plugin/ |
D | pepper_input_handler.cc | 65 protocol::KeyEvent key_event; in HandleInputEvent() local 66 key_event.set_usb_keycode(GetUsbKeyCode(pp_key_event)); in HandleInputEvent() 67 key_event.set_pressed(event.GetType() == PP_INPUTEVENT_TYPE_KEYDOWN); in HandleInputEvent() 68 key_event.set_lock_states(lock_states); in HandleInputEvent() 71 input_stub_->InjectKeyEvent(key_event); in HandleInputEvent()
|
/external/chromium_org/chrome/browser/ui/views/ |
D | dropdown_bar_host_aura.cc | 18 const ui::KeyEvent& key_event) { in GetKeyboardEvent() argument 22 static_cast<ui::Event*>(const_cast<ui::KeyEvent*>(&key_event)); in GetKeyboardEvent()
|
D | find_bar_host.cc | 48 const ui::KeyEvent& key_event) { in MaybeForwardKeyEventToWebpage() argument 49 if (!ShouldForwardKeyEventToWebpageNative(key_event)) { in MaybeForwardKeyEventToWebpage() 54 switch (key_event.key_code()) { in MaybeForwardKeyEventToWebpage() 62 if (key_event.IsControlDown()) in MaybeForwardKeyEventToWebpage() 78 NativeWebKeyboardEvent event = GetKeyboardEvent(contents, key_event); in MaybeForwardKeyEventToWebpage()
|
/external/chromium_org/content/public/test/ |
D | render_view_test.h | 91 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event); 94 void SendWebKeyboardEvent(const blink::WebKeyboardEvent& key_event); 97 void SendWebMouseEvent(const blink::WebMouseEvent& key_event);
|
/external/chromium_org/ui/events/x/ |
D | events_x_unittest.cc | 60 XKeyEvent* key_event = &(event->xkey); in InitKeyEvent() local 61 key_event->display = display; in InitKeyEvent() 62 key_event->type = is_press ? KeyPress : KeyRelease; in InitKeyEvent() 63 key_event->keycode = keycode; in InitKeyEvent() 64 key_event->state = state; in InitKeyEvent() 614 ui::KeyEvent key_event(&x_event); in TEST_F() local 616 KeyEventTestApi test_event(&key_event); in TEST_F() 619 EXPECT_TRUE(key_event.flags() & ui::EF_IME_FABRICATED_KEY); in TEST_F() 631 ui::KeyEvent key_event(&x_event); in TEST_F() local 633 KeyEventTestApi test_event(&key_event); in TEST_F() [all …]
|
/external/chromium_org/ui/events/ |
D | event_processor_unittest.cc | 367 KeyEvent key_event(ET_KEY_PRESSED, VKEY_ESCAPE, EF_NONE); in TEST_F() local 368 DispatchEvent(&key_event); in TEST_F() 380 key_event = KeyEvent(ET_KEY_PRESSED, VKEY_ESCAPE, EF_NONE); in TEST_F() 381 DispatchEvent(&key_event); in TEST_F() 393 key_event = KeyEvent(ET_KEY_PRESSED, VKEY_ESCAPE, EF_NONE); in TEST_F() 394 DispatchEvent(&key_event); in TEST_F() 407 key_event = KeyEvent(ET_KEY_PRESSED, VKEY_ESCAPE, EF_NONE); in TEST_F() 408 DispatchEvent(&key_event); in TEST_F()
|