OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |