OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_XKB_KEYSYM_H_ | 5 #ifndef UI_EVENTS_KEYCODES_XKB_KEYSYM_H_ |
6 #define UI_EVENTS_KEYCODES_XKB_KEYSYM_H_ | 6 #define UI_EVENTS_KEYCODES_XKB_KEYSYM_H_ |
7 | 7 |
| 8 #include "ui/base/ui_features.h" |
| 9 |
8 // This file provides definitions of the xkbcommon keysym type (xkb_keysym_t) | 10 // This file provides definitions of the xkbcommon keysym type (xkb_keysym_t) |
9 // and values (XKB_KEY_...) for both xkbcommon and traditional X11. | 11 // and values (XKB_KEY_...) for both xkbcommon and traditional X11. |
10 | 12 |
11 #if defined(USE_XKBCOMMON) | 13 #if BUILDFLAG(USE_XKBCOMMON) |
12 | 14 |
13 #include <xkbcommon/xkbcommon.h> | 15 #include <xkbcommon/xkbcommon.h> |
14 #include <xkbcommon/xkbcommon-keysyms.h> | 16 #include <xkbcommon/xkbcommon-keysyms.h> |
15 | 17 |
16 #else // !defined(USE_XKBCOMMON) | 18 #else // !BUILDFLAG(USE_XKBCOMMON) |
17 | 19 |
18 #define XK_3270 // For XK_3270_BackTab in particular. | 20 #define XK_3270 // For XK_3270_BackTab in particular. |
19 #include <X11/X.h> | 21 #include <X11/X.h> |
20 #include <X11/keysym.h> | 22 #include <X11/keysym.h> |
21 #include <X11/Sunkeysym.h> | 23 #include <X11/Sunkeysym.h> |
22 #include <X11/XF86keysym.h> | 24 #include <X11/XF86keysym.h> |
23 | 25 |
24 using xkb_keysym_t = uint32_t; | 26 using xkb_keysym_t = uint32_t; |
25 | 27 |
26 #define XKB_KEY_3270_Duplicate XK_3270_Duplicate | 28 #define XKB_KEY_3270_Duplicate XK_3270_Duplicate |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 #define XKB_KEY_XF86Hibernate XF86XK_Hibernate | 529 #define XKB_KEY_XF86Hibernate XF86XK_Hibernate |
528 #define XKB_KEY_XF86TouchpadToggle XF86XK_TouchpadToggle | 530 #define XKB_KEY_XF86TouchpadToggle XF86XK_TouchpadToggle |
529 #define XKB_KEY_XF86TouchpadOn XF86XK_TouchpadOn | 531 #define XKB_KEY_XF86TouchpadOn XF86XK_TouchpadOn |
530 #define XKB_KEY_XF86TouchpadOff XF86XK_TouchpadOff | 532 #define XKB_KEY_XF86TouchpadOff XF86XK_TouchpadOff |
531 #define XKB_KEY_XF86AudioMicMute XF86XK_AudioMicMute | 533 #define XKB_KEY_XF86AudioMicMute XF86XK_AudioMicMute |
532 | 534 |
533 #endif | 535 #endif |
534 | 536 |
535 #endif // UI_EVENTS_KEYCODES_XKB_KEYSYM_H_ | 537 #endif // UI_EVENTS_KEYCODES_XKB_KEYSYM_H_ |
536 | 538 |
OLD | NEW |