Home
last modified time | relevance | path

Searched refs:key_code (Results 1 – 25 of 236) sorted by relevance

12345678910

/external/chromium_org/chrome/test/chromedriver/
Dkey_converter.cc18 ui::KeyboardCode key_code; member
102 bool IsSpecialKeyPrintable(ui::KeyboardCode key_code) { in IsSpecialKeyPrintable() argument
103 return key_code == ui::VKEY_TAB || key_code == ui::VKEY_SPACE || in IsSpecialKeyPrintable()
104 key_code == ui::VKEY_OEM_1 || key_code == ui::VKEY_OEM_PLUS || in IsSpecialKeyPrintable()
105 key_code == ui::VKEY_OEM_COMMA || in IsSpecialKeyPrintable()
106 (key_code >= ui::VKEY_NUMPAD0 && key_code <= ui::VKEY_DIVIDE); in IsSpecialKeyPrintable()
125 bool KeyCodeFromSpecialWebDriverKey(char16 key, ui::KeyboardCode* key_code) { in KeyCodeFromSpecialWebDriverKey() argument
130 *key_code = kSpecialWebDriverKeys[index]; in KeyCodeFromSpecialWebDriverKey()
140 ui::KeyboardCode* key_code, in KeyCodeFromShorthandKey() argument
150 *key_code = ui::VKEY_RETURN; in KeyCodeFromShorthandKey()
[all …]
Dkeycode_text_conversion_x.cc21 ui::KeyboardCode key_code; member
132 return a.key_code < b.key_code; in operator <()
137 int KeyboardCodeToXKeyCode(ui::KeyboardCode key_code) { in KeyboardCodeToXKeyCode() argument
139 find.key_code = key_code; in KeyboardCodeToXKeyCode()
144 found->key_code != key_code) in KeyboardCodeToXKeyCode()
181 ui::KeyboardCode key_code, int modifiers, std::string* text, in ConvertKeyCodeToText() argument
184 int x_key_code = KeyboardCodeToXKeyCode(key_code); in ConvertKeyCodeToText()
233 ui::KeyboardCode* key_code, in ConvertCharToKeyCode() argument
243 test_code = kKeyCodeToXKeyCode[i].key_code; in ConvertCharToKeyCode()
265 *key_code = test_code; in ConvertCharToKeyCode()
Dkeycode_text_conversion_win.cc14 ui::KeyboardCode key_code, int modifiers, std::string* text, in ConvertKeyCodeToText() argument
16 UINT scan_code = ::MapVirtualKeyW(key_code, MAPVK_VK_TO_VSC); in ConvertKeyCodeToText()
27 int code = ::ToUnicode(key_code, scan_code, keyboard_state, chars, 4, 0); in ConvertKeyCodeToText()
38 char16 key, ui::KeyboardCode* key_code, int *necessary_modifiers, in ConvertCharToKeyCode() argument
46 *key_code = static_cast<ui::KeyboardCode>(LOBYTE(vkey_and_modifiers)); in ConvertCharToKeyCode()
Dkeycode_text_conversion_unittest.cc17 void CheckCharToKeyCode16(char16 character, ui::KeyboardCode key_code, in CheckCharToKeyCode16() argument
24 EXPECT_EQ(key_code, actual_key_code) << "Char: " << character; in CheckCharToKeyCode16()
28 void CheckCharToKeyCode(char character, ui::KeyboardCode key_code, in CheckCharToKeyCode() argument
31 key_code, modifiers); in CheckCharToKeyCode()
35 void CheckCharToKeyCode(wchar_t character, ui::KeyboardCode key_code, in CheckCharToKeyCode() argument
38 key_code, modifiers); in CheckCharToKeyCode()
53 std::string ConvertKeyCodeToTextNoError(ui::KeyboardCode key_code, in ConvertKeyCodeToTextNoError() argument
57 EXPECT_TRUE(ConvertKeyCodeToText(key_code, modifiers, &text, &error_msg)); in ConvertKeyCodeToTextNoError()
Dkey_converter_unittest.cc35 EXPECT_EQ(expected_events[i].key_code, it->key_code); in CheckEvents()
57 void CheckNonShiftChar(ui::KeyboardCode key_code, char character) { in CheckNonShiftChar() argument
67 EXPECT_EQ(key_code, it->key_code) << "Char: " << character; in CheckNonShiftChar()
74 EXPECT_EQ(key_code, it->key_code) << "Char: " << character; in CheckNonShiftChar()
77 void CheckShiftChar(ui::KeyboardCode key_code, char character, char lower) { in CheckShiftChar() argument
87 EXPECT_EQ(ui::VKEY_SHIFT, it->key_code) << "Char: " << character; in CheckShiftChar()
89 EXPECT_EQ(key_code, it->key_code) << "Char: " << character; in CheckShiftChar()
96 EXPECT_EQ(key_code, it->key_code) << "Char: " << character; in CheckShiftChar()
98 EXPECT_EQ(ui::VKEY_SHIFT, it->key_code) << "Char: " << character; in CheckShiftChar()
/external/chromium_org/ui/events/keycodes/
Dkeyboard_code_conversion.cc11 uint16 GetCharacterFromKeyCode(KeyboardCode key_code, int flags) { in GetCharacterFromKeyCode() argument
17 if (key_code >= VKEY_A && key_code <= VKEY_Z) in GetCharacterFromKeyCode()
18 return key_code - VKEY_A + (ctrl ? 1 : (upper ? 'A' : 'a')); in GetCharacterFromKeyCode()
24 switch (key_code) { in GetCharacterFromKeyCode()
39 switch (key_code) { in GetCharacterFromKeyCode()
60 if (key_code == ui::VKEY_PROCESSKEY) in GetCharacterFromKeyCode()
64 if (key_code >= VKEY_0 && key_code <= VKEY_9) { in GetCharacterFromKeyCode()
65 return shift ? ")!@#$%^&*("[key_code - VKEY_0] : in GetCharacterFromKeyCode()
66 static_cast<uint16>(key_code); in GetCharacterFromKeyCode()
67 } else if (key_code >= VKEY_NUMPAD0 && key_code <= VKEY_NUMPAD9) { in GetCharacterFromKeyCode()
[all …]
/external/chromium/chrome/browser/extensions/
Dkey_identifier_conversion_views_unittest.cc26 EXPECT_EQ(ui::VKEY_APPS, KeyEventFromKeyIdentifier("Apps").key_code()); in TEST_F()
28 KeyEventFromKeyIdentifier("Nonsense").key_code()); in TEST_F()
32 EXPECT_EQ(ui::VKEY_A, KeyEventFromKeyIdentifier("a").key_code()); in TEST_F()
33 EXPECT_EQ(ui::VKEY_A, KeyEventFromKeyIdentifier("A").key_code()); in TEST_F()
34 EXPECT_EQ(ui::VKEY_OEM_PERIOD, KeyEventFromKeyIdentifier(">").key_code()); in TEST_F()
39 KeyEventFromKeyIdentifier(non_printing_char).key_code()); in TEST_F()
43 EXPECT_EQ(ui::VKEY_A, KeyEventFromKeyIdentifier("U+0041").key_code()); in TEST_F()
44 EXPECT_EQ(ui::VKEY_A, KeyEventFromKeyIdentifier("U+0061").key_code()); in TEST_F()
45 EXPECT_EQ(ui::VKEY_DELETE, KeyEventFromKeyIdentifier("U+007F").key_code()); in TEST_F()
48 EXPECT_EQ(ui::VKEY_UNKNOWN, KeyEventFromKeyIdentifier("U+030A").key_code()); in TEST_F()
[all …]
/external/chromium_org/ui/events/ozone/evdev/
Dkey_event_converter_unittest.cc88 EXPECT_EQ(ui::VKEY_BACK, event->key_code()); in TEST_F()
93 EXPECT_EQ(ui::VKEY_BACK, event->key_code()); in TEST_F()
125 EXPECT_EQ(ui::VKEY_BACK, event->key_code()); in TEST_F()
130 EXPECT_EQ(ui::VKEY_BACK, event->key_code()); in TEST_F()
135 EXPECT_EQ(ui::VKEY_BACK, event->key_code()); in TEST_F()
140 EXPECT_EQ(ui::VKEY_BACK, event->key_code()); in TEST_F()
178 EXPECT_EQ(ui::VKEY_SHIFT, event->key_code()); in TEST_F()
183 EXPECT_EQ(ui::VKEY_A, event->key_code()); in TEST_F()
188 EXPECT_EQ(ui::VKEY_A, event->key_code()); in TEST_F()
193 EXPECT_EQ(ui::VKEY_SHIFT, event->key_code()); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/chromeos/
Dkeyboard_driven_event_rewriter.cc52 if (event->key_code() != ui::VKEY_LEFT && in RewriteEvent()
53 event->key_code() != ui::VKEY_RIGHT && in RewriteEvent()
54 event->key_code() != ui::VKEY_UP && in RewriteEvent()
55 event->key_code() != ui::VKEY_DOWN && in RewriteEvent()
56 event->key_code() != ui::VKEY_RETURN && in RewriteEvent()
57 event->key_code() != ui::VKEY_F6) { in RewriteEvent()
/external/chromium_org/ash/accelerators/
Daccelerator_dispatcher.cc57 const ui::KeyboardCode key_code = key_event.key_code(); in IsPossibleAcceleratorNotForMenu() local
58 if ((key_code >= ui::VKEY_A && key_code <= ui::VKEY_Z) || in IsPossibleAcceleratorNotForMenu()
59 (key_code >= ui::VKEY_0 && key_code <= ui::VKEY_9) || in IsPossibleAcceleratorNotForMenu()
60 (key_code == ui::VKEY_TAB)) { in IsPossibleAcceleratorNotForMenu()
121 ui::Accelerator accelerator(key_event.key_code(), in Dispatch()
Daccelerator_controller.cc130 if (accelerator.key_code() == ui::VKEY_TAB) in HandleCycleBackwardMRU()
146 if (accelerator.key_code() == ui::VKEY_TAB) in HandleCycleForwardMRU()
169 if (accelerator.key_code() == ui::VKEY_MEDIA_LAUNCH_APP1) in HandleCycleLinear()
175 bool HandleDisableCapsLock(ui::KeyboardCode key_code, in HandleDisableCapsLock() argument
264 bool HandleNewTab(ui::KeyboardCode key_code) { in HandleNewTab() argument
265 if (key_code == ui::VKEY_T) in HandleNewTab()
523 bool HandleToggleAppList(ui::KeyboardCode key_code, in HandleToggleAppList() argument
530 if (key_code == ui::VKEY_LWIN && in HandleToggleAppList()
534 if (key_code == ui::VKEY_LWIN) in HandleToggleAppList()
539 DCHECK_EQ(ui::VKEY_LWIN, accelerator.key_code()); in HandleToggleAppList()
[all …]
Daccelerator_filter.cc24 bool IsSystemKey(ui::KeyboardCode key_code) { in IsSystemKey() argument
26 switch (key_code) { in IsSystemKey()
109 ui::Accelerator accelerator(event->key_code(), in OnKeyEvent()
123 if (IsSystemKey(event->key_code()) && !CanConsumeSystemKeys(target)) { in OnKeyEvent()
/external/chromium_org/ash/autoclick/
Dautoclick_controller.cc26 bool IsModifierKey(ui::KeyboardCode key_code) { in IsModifierKey() argument
27 return key_code == ui::VKEY_SHIFT || in IsModifierKey()
28 key_code == ui::VKEY_LSHIFT || in IsModifierKey()
29 key_code == ui::VKEY_CONTROL || in IsModifierKey()
30 key_code == ui::VKEY_LCONTROL || in IsModifierKey()
31 key_code == ui::VKEY_RCONTROL || in IsModifierKey()
32 key_code == ui::VKEY_MENU || in IsModifierKey()
33 key_code == ui::VKEY_LMENU || in IsModifierKey()
34 key_code == ui::VKEY_RMENU; in IsModifierKey()
162 if (!IsModifierKey(event->key_code())) in OnKeyEvent()
/external/chromium_org/content/browser/renderer_host/input/
Dweb_input_event_util_posix.cc9 ui::KeyboardCode GetWindowsKeyCodeWithoutLocation(ui::KeyboardCode key_code) { in GetWindowsKeyCodeWithoutLocation() argument
10 switch (key_code) { in GetWindowsKeyCodeWithoutLocation()
21 return key_code; in GetWindowsKeyCodeWithoutLocation()
26 ui::KeyboardCode key_code) { in GetLocationModifiersFromWindowsKeyCode() argument
27 switch (key_code) { in GetLocationModifiersFromWindowsKeyCode()
/external/chromium_org/ui/views/focus/
Dfocus_manager.cc50 const int key_code = event.key_code(); in OnKeyEvent() local
65 ui::Accelerator accelerator(event.key_code(), modifiers); in OnKeyEvent()
98 (key_code == ui::VKEY_UP || key_code == ui::VKEY_DOWN || in OnKeyEvent()
99 key_code == ui::VKEY_LEFT || key_code == ui::VKEY_RIGHT)) { in OnKeyEvent()
100 bool next = (key_code == ui::VKEY_RIGHT || key_code == ui::VKEY_DOWN); in OnKeyEvent()
513 return key_event.key_code() == ui::VKEY_TAB && !key_event.IsControlDown(); in IsTabTraversalKeyEvent()
537 const int key_code = event.key_code(); in ProcessArrowKeyTraversal() local
538 if (key_code == ui::VKEY_LEFT || key_code == ui::VKEY_UP) { in ProcessArrowKeyTraversal()
542 if (key_code == ui::VKEY_RIGHT || key_code == ui::VKEY_DOWN) { in ProcessArrowKeyTraversal()
Dfocus_manager_test.cc112 void FocusManagerTest::PostKeyDown(ui::KeyboardCode key_code) { in PostKeyDown() argument
113 PostMessage(GetWidget()->GetNativeView(), WM_KEYDOWN, key_code, 0); in PostKeyDown()
116 void FocusManagerTest::PostKeyUp(ui::KeyboardCode key_code) { in PostKeyUp() argument
117 PostMessage(GetWidget()->GetNativeView(), WM_KEYUP, key_code, 0); in PostKeyUp()
/external/chromium_org/media/base/
Dkeyboard_event_counter.cc23 ui::KeyboardCode key_code) { in OnKeyboardEvent() argument
26 if (pressed_keys_.find(key_code) != pressed_keys_.end()) in OnKeyboardEvent()
28 pressed_keys_.insert(key_code); in OnKeyboardEvent()
33 pressed_keys_.erase(key_code); in OnKeyboardEvent()
/external/chromium/chrome/browser/chromeos/login/
Dexisting_user_view.cc38 if (e.key_code() == ui::VKEY_TAB) { in OnKeyPressed()
41 } else if (e.key_code() == ui::VKEY_LEFT) { in OnKeyPressed()
44 } else if (e.key_code() == ui::VKEY_RIGHT) { in OnKeyPressed()
53 if (e.key_code() == ui::VKEY_TAB) in SkipDefaultKeyEventProcessing()
118 if (key_event.key_code() == ui::VKEY_RETURN) { in HandleKeyEvent()
/external/chromium_org/ash/wm/
Dsticky_keys.cc258 if (event->key_code() == ui::VKEY_SHIFT || in TranslateKeyEvent()
259 event->key_code() == ui::VKEY_LSHIFT || in TranslateKeyEvent()
260 event->key_code() == ui::VKEY_RSHIFT) { in TranslateKeyEvent()
262 } else if (event->key_code() == ui::VKEY_CONTROL || in TranslateKeyEvent()
263 event->key_code() == ui::VKEY_LCONTROL || in TranslateKeyEvent()
264 event->key_code() == ui::VKEY_RCONTROL) { in TranslateKeyEvent()
266 } else if (event->key_code() == ui::VKEY_MENU || in TranslateKeyEvent()
267 event->key_code() == ui::VKEY_LMENU || in TranslateKeyEvent()
268 event->key_code() == ui::VKEY_RMENU) { in TranslateKeyEvent()
410 event->set_character(ui::GetCharacterFromKeyCode(event->key_code(), in AppendModifier()
/external/chromium_org/chrome/test/chromedriver/chrome/
Dui_events.cc35 ui::KeyboardCode key_code) in KeyEvent() argument
40 key_code(key_code) {} in KeyEvent()
/external/chromium_org/content/test/
Dmock_keyboard_driver_win.cc130 int key_code; in SetModifiers() member
146 keyboard_states_[kModifierMasks[i].key_code] = kKeyDownMask; in SetModifiers()
153 int MockKeyboardDriverWin::GetCharacters(int key_code, in GetCharacters() argument
159 int length = ToUnicodeEx(key_code, MapVirtualKey(key_code, 0), in GetCharacters()
/external/chromium_org/content/browser/renderer_host/
Dime_adapter_android.cc40 int key_code, in NativeWebKeyboardEventFromKeyEvent() argument
49 time_ms, key_code, unicode_char, is_system_key); in NativeWebKeyboardEventFromKeyEvent()
97 int key_code, in SendSyntheticKeyEvent() argument
100 0 /* modifiers */, time_ms / 1000.0, key_code, in SendSyntheticKeyEvent()
109 long time_ms, int key_code, in SendKeyEvent() argument
113 time_ms, key_code, is_system_key, unicode_char); in SendKeyEvent()
125 time_ms, key_code, unicode_char, in SendKeyEvent()
/external/chromium/chrome/browser/ui/views/
Ddropdown_bar_host_gtk.cc40 wke.windowsKeyCode = key_event.key_code(); in GetKeyboardEvent()
45 ui::GdkKeyCodeForWindowsKeyCode(key_event.key_code(), in GetKeyboardEvent()
54 if (key_event.key_code() == ui::VKEY_RETURN) { in GetKeyboardEvent()
/external/chromium_org/chrome/browser/extensions/api/commands/
Dcommand_service.cc88 return (command.accelerator().key_code() >= ui::VKEY_0 && in IsWhitelistedGlobalShortcut()
89 command.accelerator().key_code() <= ui::VKEY_9); in IsWhitelistedGlobalShortcut()
136 return (accelerator.key_code() == ui::VKEY_MEDIA_NEXT_TRACK || in IsMediaKey()
137 accelerator.key_code() == ui::VKEY_MEDIA_PREV_TRACK || in IsMediaKey()
138 accelerator.key_code() == ui::VKEY_MEDIA_PLAY_PAUSE || in IsMediaKey()
139 accelerator.key_code() == ui::VKEY_MEDIA_STOP); in IsMediaKey()
194 if (type == ACTIVE_ONLY && shortcut_assigned.key_code() == ui::VKEY_UNKNOWN) in GetNamedCommands()
201 if (shortcut_assigned.key_code() != ui::VKEY_UNKNOWN) in GetNamedCommands()
217 if (accelerator.key_code() == ui::VKEY_UNKNOWN) in AddKeybindingPref()
508 *active = (shortcut_assigned.key_code() != ui::VKEY_UNKNOWN); in GetExtensionActionCommand()
[all …]
/external/chromium_org/chrome/browser/ui/ash/
Dvolume_controller_chromeos.cc31 if (accelerator.key_code() == ui::VKEY_VOLUME_MUTE) in HandleVolumeMute()
39 if (accelerator.key_code() == ui::VKEY_VOLUME_DOWN) in HandleVolumeDown()
54 if (accelerator.key_code() == ui::VKEY_VOLUME_UP) in HandleVolumeUp()

12345678910