OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_EVENTS_OZONE_LAYOUT_XKB_XKB_TYPES_H_ |
| 6 #define UI_EVENTS_OZONE_LAYOUT_XKB_XKB_TYPES_H_ |
| 7 |
| 8 #if defined(USE_X11) |
| 9 #include <X11/XKBlib.h> |
| 10 #else |
| 11 #include <xkbcommon/xkbcommon.h> |
| 12 #endif |
| 13 |
| 14 namespace ui { |
| 15 |
| 16 #if defined(USE_X11) |
| 17 using XkbKeyCode = decltype(XKeyEvent.keycode); |
| 18 using XkbFlags = decltype(XKeyEvent.state); |
| 19 using XkbKeySym = KeySym; |
| 20 #else |
| 21 using XkbKeyCode = xkb_keycode_t; |
| 22 using XkbFlags = xkb_mod_mask_t; |
| 23 using XkbKeySym = xkb_keysym_t; |
| 24 #endif |
| 25 |
| 26 } // namespace ui |
| 27 |
| 28 #endif // UI_EVENTS_OZONE_LAYOUT_XKB_XKB_TYPES_H_ |
OLD | NEW |