OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef BASE_KEYBOARD_CODES_LINUX_H_ | 31 #ifndef BASE_KEYBOARD_CODES_LINUX_H_ |
32 #define BASE_KEYBOARD_CODES_LINUX_H_ | 32 #define BASE_KEYBOARD_CODES_LINUX_H_ |
33 | 33 |
34 #include <gdk/gdkkeysyms.h> | 34 #include <gdk/gdkkeysyms.h> |
35 #include <X11/XF86keysym.h> | 35 #include <X11/XF86keysym.h> |
36 | 36 |
37 namespace base { | 37 namespace base { |
38 | 38 |
39 enum { | 39 typedef enum { |
40 VKEY_BACK = GDK_BackSpace, | 40 VKEY_BACK = GDK_BackSpace, |
41 VKEY_TAB = GDK_Tab, | 41 VKEY_TAB = GDK_Tab, |
42 VKEY_CLEAR = GDK_Clear, | 42 VKEY_CLEAR = GDK_Clear, |
43 VKEY_RETURN = GDK_Return, | 43 VKEY_RETURN = GDK_Return, |
44 VKEY_SHIFT = GDK_Shift_L, // TODO(jcampan): what about GDK_Shift_R? | 44 VKEY_SHIFT = GDK_Shift_L, // TODO(jcampan): what about GDK_Shift_R? |
45 VKEY_CONTROL = GDK_Control_L, // TODO(jcampan): what about GDK_Control_R? | 45 VKEY_CONTROL = GDK_Control_L, // TODO(jcampan): what about GDK_Control_R? |
46 VKEY_MENU = GDK_Menu, | 46 VKEY_MENU = GDK_Menu, |
47 VKEY_PAUSE = GDK_Pause, | 47 VKEY_PAUSE = GDK_Pause, |
48 VKEY_CAPITAL = GDK_Shift_Lock, | 48 VKEY_CAPITAL = GDK_Shift_Lock, |
49 VKEY_KANA = GDK_Kana_Shift, | 49 VKEY_KANA = GDK_Kana_Shift, |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 VKEY_ATTN = 0xF6, | 200 VKEY_ATTN = 0xF6, |
201 VKEY_CRSEL = 0xF7, | 201 VKEY_CRSEL = 0xF7, |
202 VKEY_EXSEL = 0xF8, | 202 VKEY_EXSEL = 0xF8, |
203 VKEY_EREOF = 0xF9, | 203 VKEY_EREOF = 0xF9, |
204 VKEY_PLAY = 0xFA, | 204 VKEY_PLAY = 0xFA, |
205 VKEY_ZOOM = XF86XK_ZoomIn, | 205 VKEY_ZOOM = XF86XK_ZoomIn, |
206 VKEY_NONAME = 0xFC, | 206 VKEY_NONAME = 0xFC, |
207 VKEY_PA1 = 0xFD, | 207 VKEY_PA1 = 0xFD, |
208 VKEY_OEM_CLEAR = 0xFE, | 208 VKEY_OEM_CLEAR = 0xFE, |
209 VKEY_UNKNOWN = 0 | 209 VKEY_UNKNOWN = 0 |
210 }; | 210 } KeyboardCode; |
211 | 211 |
212 } // namespace views | 212 } // namespace views |
213 | 213 |
214 #endif // BASE_KEYBOARD_CODES_LINUX_H_ | 214 #endif // BASE_KEYBOARD_CODES_LINUX_H_ |
OLD | NEW |