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

Side by Side Diff: ui/ozone/platform/wayland/wayland_keyboard.h

Issue 1841083003: ozone/platform/wayland: Implement keyboard handling Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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 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_;
56 };
57
58 } // namespace ui
59
60 #endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/wayland/wayland_display.cc ('k') | ui/ozone/platform/wayland/wayland_keyboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698