OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_ | |
6 #define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_ | |
7 | |
8 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" | |
9 #include "ui/events/ozone/evdev/keyboard_evdev.h" | |
10 #include "ui/ozone/platform/wayland/wayland_object.h" | |
11 | |
12 namespace ui { | |
13 | |
14 class WaylandKeyboard { | |
15 public: | |
16 WaylandKeyboard(wl_keyboard* keyboard, const EventDispatchCallback& callback); | |
17 virtual ~WaylandKeyboard(); | |
18 | |
19 private: | |
20 // wl_keyboard_listener | |
21 static void Keymap(void* data, | |
22 wl_keyboard* obj, | |
23 uint32_t format, | |
24 int32_t fd, | |
25 uint32_t size); | |
26 static void Enter(void* data, | |
27 wl_keyboard* obj, | |
28 uint32_t serial, | |
29 wl_surface* surface, | |
30 wl_array* keys); | |
31 static void Leave(void* data, | |
32 wl_keyboard* obj, | |
33 uint32_t serial, | |
34 wl_surface* surface); | |
35 static void Key(void* data, | |
36 wl_keyboard* obj, | |
37 uint32_t serial, | |
38 uint32_t time, | |
39 uint32_t key, | |
40 uint32_t state); | |
41 static void Modifiers(void* data, | |
42 wl_keyboard* obj, | |
43 uint32_t serial, | |
44 uint32_t mods_depressed, | |
45 uint32_t mods_latched, | |
46 uint32_t mods_locked, | |
47 uint32_t group); | |
48 static void RepeatInfo(void* data, | |
49 wl_keyboard* obj, | |
50 int32_t rate, | |
51 int32_t delay); | |
52 | |
53 wl::Object<wl_keyboard> obj_; | |
54 EventModifiersEvdev modifiers_; | |
55 KeyboardEvdev evdev_; | |
spang
2017/01/18 00:59:48
I don't think using KeyboardEvdev and EventModifie
| |
56 }; | |
57 | |
58 } // namespace ui | |
59 | |
60 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_ | |
OLD | NEW |