Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: ui/events/ozone/layout/xkb/xkb.h

Issue 778503002: XKB implementation of Ozone key layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x430194-layout
Patch Set: address review comments (spang) Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698