Home
last modified time | relevance | path

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

123456

/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.code = CodeForKeyboardEvent(key_event); in AppendKeyEvent()
147 const WebKeyboardEvent& key_event = in AppendCharEvent() local
158 key_event.text[utf16_char_count]) in AppendCharEvent()
162 base::i18n::UTF16CharIterator iter(key_event.text, utf16_char_count); in AppendCharEvent()
165 result.event_modifiers = key_event.modifiers; in AppendCharEvent()
352 WebKeyboardEvent* key_event = new WebKeyboardEvent(); in BuildKeyEvent() local
355 key_event->type = WebInputEvent::RawKeyDown; in BuildKeyEvent()
[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/ui/wm/core/
Daccelerator_filter.cc68 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()
/external/chromium_org/chrome/browser/chromeos/events/
Devent_rewriter.cc333 const ui::KeyEvent& key_event, in RewriteKeyEvent() argument
335 MutableKeyState state = {key_event.flags(), key_event.key_code()}; in RewriteKeyEvent()
336 RewriteModifierKeys(key_event, &state); in RewriteKeyEvent()
337 RewriteNumPadKeys(key_event, &state); in RewriteKeyEvent()
338 RewriteExtendedKeys(key_event, &state); in RewriteKeyEvent()
339 RewriteFunctionKeys(key_event, &state); in RewriteKeyEvent()
340 if ((key_event.flags() == state.flags) && in RewriteKeyEvent()
341 (key_event.key_code() == state.key_code)) { in RewriteKeyEvent()
344 ui::KeyEvent* rewritten_key_event = new ui::KeyEvent(key_event); in RewriteKeyEvent()
427 void EventRewriter::RewriteModifierKeys(const ui::KeyEvent& key_event, in RewriteModifierKeys() argument
[all …]
Dkeyboard_driven_event_rewriter.cc68 const ui::KeyEvent& key_event = static_cast<const ui::KeyEvent&>(event); in Rewrite() local
69 ui::KeyboardCode key_code = key_event.key_code(); in Rewrite()
80 rewritten_event->reset(new ui::KeyEvent(key_event)); in Rewrite()
/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/ash/wm/maximize_mode/
Dmaximize_mode_event_blocker.cc108 ui::KeyEvent* key_event = static_cast<ui::KeyEvent*>(event); in FindTargetForEvent() local
109 if ((key_event->flags() & ui::EF_FUNCTION_KEY) || in FindTargetForEvent()
110 (key_event->key_code() != ui::VKEY_VOLUME_DOWN && in FindTargetForEvent()
111 key_event->key_code() != ui::VKEY_VOLUME_UP in FindTargetForEvent()
113 && key_event->key_code() != ui::VKEY_POWER in FindTargetForEvent()
/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) {
/external/chromium_org/chrome/browser/extensions/api/braille_display_private/
Dbraille_display_private_apitest.cc347 KeyEvent key_event; in IN_PROC_BROWSER_TEST_F() local
348 key_event.command = KEY_COMMAND_LINE_UP; in IN_PROC_BROWSER_TEST_F()
349 signin_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
350 user_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
357 signin_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
358 user_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
364 signin_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
365 user_api.OnBrailleKeyEvent(key_event); in IN_PROC_BROWSER_TEST_F()
/external/chromium_org/chrome/browser/chromeos/input_method/
Dinput_method_engine_browsertests.cc189 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_NONE, false); in IN_PROC_BROWSER_TEST_P() local
190 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
269 ui::KeyEvent key_event( in IN_PROC_BROWSER_TEST_P() local
271 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
285 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local
290 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
304 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local
309 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
323 ui::KeyEvent key_event(ui::ET_KEY_PRESSED, in IN_PROC_BROWSER_TEST_P() local
328 engine_handler->ProcessKeyEvent(key_event, in IN_PROC_BROWSER_TEST_P()
[all …]
/external/chromium_org/ash/accelerators/
Daccelerator_delegate.cc22 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()
Dmagnifier_key_scroller_unittest.cc24 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::__anona6ca61530111::KeyEventDelegate
/external/chromium_org/native_client_sdk/src/examples/api/input_event/
Dinput_event.cc192 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/mojo/services/public/cpp/input_events/lib/
Dinput_events_type_converters.cc35 const ui::KeyEvent* key_event = static_cast<const ui::KeyEvent*>(&input); in ConvertFrom() local
37 key_data->key_code = key_event->key_code(); in ConvertFrom()
38 key_data->is_char = key_event->is_char(); in ConvertFrom()
/external/chromium_org/remoting/client/plugin/
Dpepper_input_handler.cc66 protocol::KeyEvent key_event; in HandleInputEvent() local
67 key_event.set_usb_keycode(GetUsbKeyCode(pp_key_event)); in HandleInputEvent()
68 key_event.set_pressed(event.GetType() == PP_INPUTEVENT_TYPE_KEYDOWN); in HandleInputEvent()
69 key_event.set_lock_states(lock_states); in HandleInputEvent()
72 input_stub_->InjectKeyEvent(key_event); in HandleInputEvent()
/external/chromium_org/ui/events/
Devent_processor_unittest.cc255 KeyEvent key_event(ET_KEY_PRESSED, VKEY_ESCAPE, 0, false); in TEST_F() local
256 DispatchEvent(&key_event); in TEST_F()
268 key_event = KeyEvent(ET_KEY_PRESSED, VKEY_ESCAPE, 0, false); in TEST_F()
269 DispatchEvent(&key_event); in TEST_F()
281 key_event = KeyEvent(ET_KEY_PRESSED, VKEY_ESCAPE, 0, false); in TEST_F()
282 DispatchEvent(&key_event); in TEST_F()
295 key_event = KeyEvent(ET_KEY_PRESSED, VKEY_ESCAPE, 0, false); in TEST_F()
296 DispatchEvent(&key_event); in TEST_F()
/external/chromium_org/content/public/test/
Drender_view_test.h89 void SendNativeKeyEvent(const NativeWebKeyboardEvent& key_event);
92 void SendWebKeyboardEvent(const blink::WebKeyboardEvent& key_event);
95 void SendWebMouseEvent(const blink::WebMouseEvent& key_event);
/external/chromium_org/chrome/browser/ui/views/
Ddropdown_bar_host_aura.cc18 const ui::KeyEvent& key_event) { in GetKeyboardEvent() argument
22 static_cast<ui::Event*>(const_cast<ui::KeyEvent*>(&key_event)); in GetKeyboardEvent()
Dfind_bar_host.cc48 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/ui/events/x/
Devents_x_unittest.cc55 XKeyEvent* key_event = &(event->xkey); in InitKeyEvent() local
56 key_event->display = display; in InitKeyEvent()
57 key_event->type = is_press ? KeyPress : KeyRelease; in InitKeyEvent()
58 key_event->keycode = keycode; in InitKeyEvent()
59 key_event->state = state; in InitKeyEvent()
443 ui::KeyEvent key_event(&x_event, is_char); in TEST() local
444 EXPECT_TRUE(key_event.flags() & ui::EF_IME_FABRICATED_KEY); in TEST()
456 ui::KeyEvent key_event(&x_event, is_char); in TEST() local
457 EXPECT_FALSE(key_event.flags() & ui::EF_IME_FABRICATED_KEY); in TEST()

123456