Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1137)

Side by Side Diff: ui/events/keycodes/keyboard_codes_win.h

Issue 2025733002: [DomKey] Use VK->DomKey mapping for non-printable keys (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wez's review 2 Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/keycodes/keyboard_codes_posix.h ('k') | ui/events/keycodes/platform_key_map_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ 5 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
6 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ 6 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <ime.h> 9 #include <ime.h>
10 10
11 namespace ui { 11 namespace ui {
12 12
13 enum KeyboardCode { 13 enum KeyboardCode {
14 VKEY_CANCEL = VK_CANCEL,
14 VKEY_BACK = VK_BACK, 15 VKEY_BACK = VK_BACK,
15 VKEY_TAB = VK_TAB, 16 VKEY_TAB = VK_TAB,
16 VKEY_CLEAR = VK_CLEAR, 17 VKEY_CLEAR = VK_CLEAR,
17 VKEY_RETURN = VK_RETURN, 18 VKEY_RETURN = VK_RETURN,
18 VKEY_SHIFT = VK_SHIFT, 19 VKEY_SHIFT = VK_SHIFT,
19 VKEY_CONTROL = VK_CONTROL, 20 VKEY_CONTROL = VK_CONTROL,
20 VKEY_MENU = VK_MENU, // a.k.a. ALT 21 VKEY_MENU = VK_MENU, // a.k.a. ALT
21 VKEY_PAUSE = VK_PAUSE, 22 VKEY_PAUSE = VK_PAUSE,
22 VKEY_CAPITAL = VK_CAPITAL, 23 VKEY_CAPITAL = VK_CAPITAL,
23 VKEY_KANA = VK_KANA, 24 VKEY_KANA = VK_KANA,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 VKEY_UNKNOWN = 0, 184 VKEY_UNKNOWN = 0,
184 185
185 // Windows does not have a specific key code for AltGr. We use the unused 186 // Windows does not have a specific key code for AltGr. We use the unused
186 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux. 187 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux.
187 VKEY_ALTGR = VK_OEM_AX, 188 VKEY_ALTGR = VK_OEM_AX,
188 }; 189 };
189 190
190 } // namespace ui 191 } // namespace ui
191 192
192 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ 193 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
OLDNEW
« no previous file with comments | « ui/events/keycodes/keyboard_codes_posix.h ('k') | ui/events/keycodes/platform_key_map_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698