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

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

Issue 954943003: [KeyboardEvent] Use DOM |code| rather than Windows-based key code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing VKEY in windows for brightness and power Created 5 years, 10 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_code_conversion_xkb.cc ('k') | ui/events/keycodes/xkb_keysym.h » ('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
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 VKEY_CRSEL = VK_CRSEL, 175 VKEY_CRSEL = VK_CRSEL,
176 VKEY_EXSEL = VK_EXSEL, 176 VKEY_EXSEL = VK_EXSEL,
177 VKEY_EREOF = VK_EREOF, 177 VKEY_EREOF = VK_EREOF,
178 VKEY_PLAY = VK_PLAY, 178 VKEY_PLAY = VK_PLAY,
179 VKEY_ZOOM = VK_ZOOM, 179 VKEY_ZOOM = VK_ZOOM,
180 VKEY_NONAME = VK_NONAME, 180 VKEY_NONAME = VK_NONAME,
181 VKEY_PA1 = VK_PA1, 181 VKEY_PA1 = VK_PA1,
182 VKEY_OEM_CLEAR = VK_OEM_CLEAR, 182 VKEY_OEM_CLEAR = VK_OEM_CLEAR,
183 VKEY_UNKNOWN = 0, 183 VKEY_UNKNOWN = 0,
184 184
185 // These keys are defined in POSIX but not in Windows
186 VKEY_POWER = VKEY_UNKNOWN,
187 VKEY_BRIGHTNESS_DOWN = VKEY_UNKNOWN,
188 VKEY_BRIGHTNESS_UP = VKEY_UNKNOWN,
189
185 // Windows does not have a specific key code for AltGr. We use the unused 190 // 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. 191 // VK_OEM_AX to represent AltGr, matching the behaviour of Firefox on Linux.
187 VKEY_ALTGR = VK_OEM_AX, 192 VKEY_ALTGR = VK_OEM_AX,
188 }; 193 };
189 194
190 } // namespace ui 195 } // namespace ui
191 196
192 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_ 197 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
OLDNEW
« no previous file with comments | « ui/events/keycodes/keyboard_code_conversion_xkb.cc ('k') | ui/events/keycodes/xkb_keysym.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698