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 /* | 5 /* |
6 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com. All rights reserved. | 6 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com. All rights reserved. |
7 * Copyright (C) 2008, 2009 Google Inc. | 7 * Copyright (C) 2008, 2009 Google Inc. |
8 * | 8 * |
9 * Redistribution and use in source and binary forms, with or without | 9 * Redistribution and use in source and binary forms, with or without |
10 * modification, are permitted provided that the following conditions | 10 * modification, are permitted provided that the following conditions |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_ | 31 #ifndef UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_ |
32 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_ | 32 #define UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_ |
33 | 33 |
34 namespace ui { | 34 namespace ui { |
35 | 35 |
36 enum KeyboardCode { | 36 enum KeyboardCode { |
| 37 VKEY_CANCEL = 0x03, |
37 VKEY_BACK = 0x08, | 38 VKEY_BACK = 0x08, |
38 VKEY_TAB = 0x09, | 39 VKEY_TAB = 0x09, |
39 VKEY_BACKTAB = 0x0A, | 40 VKEY_BACKTAB = 0x0A, |
40 VKEY_CLEAR = 0x0C, | 41 VKEY_CLEAR = 0x0C, |
41 VKEY_RETURN = 0x0D, | 42 VKEY_RETURN = 0x0D, |
42 VKEY_SHIFT = 0x10, | 43 VKEY_SHIFT = 0x10, |
43 VKEY_CONTROL = 0x11, | 44 VKEY_CONTROL = 0x11, |
44 VKEY_MENU = 0x12, | 45 VKEY_MENU = 0x12, |
45 VKEY_PAUSE = 0x13, | 46 VKEY_PAUSE = 0x13, |
46 VKEY_CAPITAL = 0x14, | 47 VKEY_CAPITAL = 0x14, |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // Linux. | 223 // Linux. |
223 VKEY_ALTGR = 0xE1, | 224 VKEY_ALTGR = 0xE1, |
224 // Windows does not have a specific key code for Compose. We use the unused | 225 // Windows does not have a specific key code for Compose. We use the unused |
225 // 0xE6 (VK_ICO_CLEAR) code to represent Compose. | 226 // 0xE6 (VK_ICO_CLEAR) code to represent Compose. |
226 VKEY_COMPOSE = 0xE6, | 227 VKEY_COMPOSE = 0xE6, |
227 }; | 228 }; |
228 | 229 |
229 } // namespace ui | 230 } // namespace ui |
230 | 231 |
231 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_ | 232 #endif // UI_EVENTS_KEYCODES_KEYBOARD_CODES_POSIX_H_ |
OLD | NEW |