Home
last modified time | relevance | path

Searched refs:key_event (Results 1 – 25 of 134) sorted by relevance

123456

/external/chromium_org/ash/accelerators/
Daccelerator_dispatcher.cc50 bool IsPossibleAcceleratorNotForMenu(const ui::KeyEvent& key_event) { in IsPossibleAcceleratorNotForMenu() argument
55 if (key_event.type() == ui::ET_KEY_PRESSED && in IsPossibleAcceleratorNotForMenu()
56 (key_event.flags() & (ui::EF_CONTROL_DOWN | ui::EF_ALT_DOWN))) { in IsPossibleAcceleratorNotForMenu()
57 const ui::KeyboardCode key_code = key_event.key_code(); in IsPossibleAcceleratorNotForMenu()
97 ui::KeyEvent key_event(event, false); in Dispatch() local
101 event_rewriter->OnKeyEvent(&key_event); in Dispatch()
102 if (key_event.stopped_propagation()) in Dispatch()
105 if (IsPossibleAcceleratorNotForMenu(key_event)) { in Dispatch()
121 ui::Accelerator accelerator(key_event.key_code(), in Dispatch()
122 key_event.flags() & kModifierMask); in Dispatch()
[all …]
/external/chromium/chrome/browser/ui/views/
Ddropdown_bar_host_gtk.cc33 const views::KeyEvent& key_event) { in GetKeyboardEvent() argument
40 wke.windowsKeyCode = key_event.key_code(); in GetKeyboardEvent()
45 ui::GdkKeyCodeForWindowsKeyCode(key_event.key_code(), in GetKeyboardEvent()
46 key_event.IsShiftDown() ^ key_event.IsCapsLockDown()))); in GetKeyboardEvent()
54 if (key_event.key_code() == ui::VKEY_RETURN) { in GetKeyboardEvent()
60 return NativeWebKeyboardEvent(&key_event.native_event()->key); in GetKeyboardEvent()
Dfind_bar_host_win.cc32 const views::KeyEvent& key_event) { in ShouldForwardKeyEventToWebpageNative() argument
34 return key_event.native_event().message == WM_KEYDOWN || in ShouldForwardKeyEventToWebpageNative()
35 key_event.native_event().message == WM_KEYUP; in ShouldForwardKeyEventToWebpageNative()
Ddropdown_bar_host_win.cc18 const views::KeyEvent& key_event) { in GetKeyboardEvent() argument
20 WORD key = WindowsKeyCodeForKeyboardCode(key_event.key_code()); in GetKeyboardEvent()
22 return NativeWebKeyboardEvent(hwnd, key_event.native_event().message, key, 0); in GetKeyboardEvent()
Dfind_bar_host.cc46 const views::KeyEvent& key_event) { in MaybeForwardKeyEventToWebpage() argument
47 if (!ShouldForwardKeyEventToWebpageNative(key_event)) { in MaybeForwardKeyEventToWebpage()
52 switch (key_event.key_code()) { in MaybeForwardKeyEventToWebpage()
60 if (key_event.IsControlDown()) in MaybeForwardKeyEventToWebpage()
77 key_event); in MaybeForwardKeyEventToWebpage()
/external/chromium_org/content/renderer/pepper/
Dusb_key_code_conversion_win.cc15 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()
25 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument
27 int scancode = (key_event.nativeKeyCode >> 16) & 0x000000FF; in CodeForKeyboardEvent()
28 if ((key_event.nativeKeyCode & (1 << 24)) != 0) in CodeForKeyboardEvent()
Dusb_key_code_conversion_linux.cc15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument
21 return key_converter->NativeKeycodeToUsbKeycode(key_event.nativeKeyCode); in UsbKeyCodeForKeyboardEvent()
24 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument
26 return key_converter->NativeKeycodeToCode(key_event.nativeKeyCode); in CodeForKeyboardEvent()
Dusb_key_code_conversion_mac.cc15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument
17 return key_converter->NativeKeycodeToUsbKeycode(key_event.nativeKeyCode); in UsbKeyCodeForKeyboardEvent()
20 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument
22 return key_converter->NativeKeycodeToCode(key_event.nativeKeyCode); in CodeForKeyboardEvent()
Devent_conversion.cc136 const WebKeyboardEvent& key_event = in AppendKeyEvent() local
139 result.event_modifiers = key_event.modifiers; in AppendKeyEvent()
140 result.key_code = key_event.windowsKeyCode; in AppendKeyEvent()
141 result.usb_key_code = UsbKeyCodeForKeyboardEvent(key_event); in AppendKeyEvent()
142 result.code = CodeForKeyboardEvent(key_event); in AppendKeyEvent()
148 const WebKeyboardEvent& key_event = in AppendCharEvent() local
159 key_event.text[utf16_char_count]) in AppendCharEvent()
163 base::i18n::UTF16CharIterator iter(key_event.text, utf16_char_count); in AppendCharEvent()
166 result.event_modifiers = key_event.modifiers; in AppendCharEvent()
343 WebKeyboardEvent* key_event = new WebKeyboardEvent(); in BuildKeyEvent() local
[all …]
Dusb_key_code_conversion.cc15 uint32_t UsbKeyCodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in UsbKeyCodeForKeyboardEvent() argument
19 const char* CodeForKeyboardEvent(const WebKeyboardEvent& key_event) { in CodeForKeyboardEvent() argument
Dusb_key_code_conversion.h21 uint32_t UsbKeyCodeForKeyboardEvent(const blink::WebKeyboardEvent& key_event);
25 const char* CodeForKeyboardEvent(const blink::WebKeyboardEvent& key_event);
/external/chromium_org/content/browser/renderer_host/
Dnative_web_keyboard_event_android.cc13 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/ppapi/api/dev/
Dppb_keyboard_input_event_dev.idl27 * @param[in] key_event A <code>PP_Resource</code> created by
31 * <code>key_event</code>.
35 PP_Bool SetUsbKeyCode([in] PP_Resource key_event,
42 * @param[in] key_event The key event for which to return the key code.
49 uint32_t GetUsbKeyCode([in] PP_Resource key_event);
55 * @param[in] key_event The key event for which to return the key code.
59 PP_Var GetCode([in] PP_Resource key_event);
/external/chromium_org/chrome/test/chromedriver/
Dkeycode_text_conversion_x.cc192 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/ui/views/
Dfind_bar_host_win.cc20 const ui::KeyEvent& key_event) { in ShouldForwardKeyEventToWebpageNative() argument
22 return key_event.native_event().message == WM_KEYDOWN || in ShouldForwardKeyEventToWebpageNative()
23 key_event.native_event().message == WM_KEYUP; in ShouldForwardKeyEventToWebpageNative()
Ddropdown_bar_host_win.cc21 const ui::KeyEvent& key_event) { in GetKeyboardEvent() argument
23 WORD key = WindowsKeyCodeForKeyboardCode(key_event.key_code()); in GetKeyboardEvent()
25 MSG msg = { hwnd, key_event.native_event().message, key, 0 }; in GetKeyboardEvent()
/external/chromium_org/ppapi/c/dev/
Dppb_keyboard_input_event_dev.h54 PP_Bool (*SetUsbKeyCode)(PP_Resource key_event, uint32_t usb_key_code);
66 uint32_t (*GetUsbKeyCode)(PP_Resource key_event);
75 struct PP_Var (*GetCode)(PP_Resource key_event);
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
Dbraille_display_private_apitest.cc290 KeyEvent key_event; in IN_PROC_BROWSER_TEST_F() local
291 key_event.command = KEY_COMMAND_LINE_UP; in IN_PROC_BROWSER_TEST_F()
292 signin_api.OnKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
293 user_api.OnKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
300 signin_api.OnKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
301 user_api.OnKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
307 signin_api.OnKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
308 user_api.OnKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/chromeos/input_method/
Dinput_method_engine_browsertests.cc185 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE, false); in IN_PROC_BROWSER_TEST_P() local
186 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
286 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
300 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local
305 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
319 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local
324 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
[all …]
/external/chromium_org/content/child/npapi/
Dplugin_web_event_converter_mac.mm75 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) {
Dwebplugin_delegate_impl_gtk.cc668 XKeyEvent& key_event = np_event->xkey; in NPEventFromWebKeyboardEvent() local
669 key_event.send_event = False; in NPEventFromWebKeyboardEvent()
670 key_event.display = GDK_DISPLAY(); in NPEventFromWebKeyboardEvent()
673 key_event.root = DefaultRootWindow(key_event.display); in NPEventFromWebKeyboardEvent()
674 key_event.time = timestamp; in NPEventFromWebKeyboardEvent()
677 key_event.x = 0; in NPEventFromWebKeyboardEvent()
678 key_event.y = 0; in NPEventFromWebKeyboardEvent()
679 key_event.x_root = -1; in NPEventFromWebKeyboardEvent()
680 key_event.y_root = -1; in NPEventFromWebKeyboardEvent()
681 key_event.state = GetXModifierState(event.modifiers); in NPEventFromWebKeyboardEvent()
[all …]
/external/chromium_org/native_client_sdk/src/examples/api/input_event/
Dinput_event.cc196 pp::KeyboardInputEvent key_event(event); in HandleInputEvent() local
199 << " modifier:" << ModifierToString(key_event.GetModifiers()) in HandleInputEvent()
200 << " key_code:" << key_event.GetKeyCode() in HandleInputEvent()
201 << " time:" << key_event.GetTimeStamp() in HandleInputEvent()
202 << " text:" << key_event.GetCharacterText().DebugString(); in HandleInputEvent()
/external/chromium_org/content/public/test/
Drender_view_test.h83 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event);
86 void SendWebKeyboardEvent(const blink::WebKeyboardEvent& key_event);
89 void SendWebMouseEvent(const blink::WebMouseEvent& key_event);
/external/chromium_org/remoting/client/plugin/
Dpepper_input_handler.cc78 protocol::KeyEvent key_event; in HandleInputEvent() local
79 key_event.set_usb_keycode(GetUsbKeyCode(pp_key_event)); in HandleInputEvent()
80 key_event.set_pressed(event.GetType() == PP_INPUTEVENT_TYPE_KEYDOWN); in HandleInputEvent()
81 key_event.set_lock_states(lock_states); in HandleInputEvent()
83 input_stub_->InjectKeyEvent(key_event); in HandleInputEvent()
/external/chromium_org/ppapi/thunk/
Dppb_input_event_thunk.cc273 uint32_t GetKeyCode(PP_Resource key_event) { in GetKeyCode() argument
275 EnterInputEvent enter(key_event, true); in GetKeyCode()
298 PP_Bool SetUsbKeyCode(PP_Resource key_event, uint32_t usb_key_code) { in SetUsbKeyCode() argument
300 EnterInputEvent enter(key_event, true); in SetUsbKeyCode()
306 uint32_t GetUsbKeyCode(PP_Resource key_event) { in GetUsbKeyCode() argument
308 EnterInputEvent enter(key_event, true); in GetUsbKeyCode()
314 PP_Var GetCode(PP_Resource key_event) { in GetCode() argument
316 EnterInputEvent enter(key_event, true); in GetCode()

123456