| Index: ui/ozone/platform/wayland/wayland_keyboard.h
|
| diff --git a/ui/ozone/platform/wayland/wayland_keyboard.h b/ui/ozone/platform/wayland/wayland_keyboard.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3a94769ffef7e4f5d7aaa9fd36ec5b0611671064
|
| --- /dev/null
|
| +++ b/ui/ozone/platform/wayland/wayland_keyboard.h
|
| @@ -0,0 +1,60 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_
|
| +#define UI_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_
|
| +
|
| +#include "ui/events/ozone/evdev/event_modifiers_evdev.h"
|
| +#include "ui/events/ozone/evdev/keyboard_evdev.h"
|
| +#include "ui/ozone/platform/wayland/wayland_object.h"
|
| +
|
| +namespace ui {
|
| +
|
| +class WaylandKeyboard {
|
| + public:
|
| + WaylandKeyboard(wl_keyboard* keyboard, const EventDispatchCallback& callback);
|
| + virtual ~WaylandKeyboard();
|
| +
|
| + private:
|
| + // wl_keyboard_listener
|
| + static void Keymap(void* data,
|
| + wl_keyboard* obj,
|
| + uint32_t format,
|
| + int32_t fd,
|
| + uint32_t size);
|
| + static void Enter(void* data,
|
| + wl_keyboard* obj,
|
| + uint32_t serial,
|
| + wl_surface* surface,
|
| + wl_array* keys);
|
| + static void Leave(void* data,
|
| + wl_keyboard* obj,
|
| + uint32_t serial,
|
| + wl_surface* surface);
|
| + static void Key(void* data,
|
| + wl_keyboard* obj,
|
| + uint32_t serial,
|
| + uint32_t time,
|
| + uint32_t key,
|
| + uint32_t state);
|
| + static void Modifiers(void* data,
|
| + wl_keyboard* obj,
|
| + uint32_t serial,
|
| + uint32_t mods_depressed,
|
| + uint32_t mods_latched,
|
| + uint32_t mods_locked,
|
| + uint32_t group);
|
| + static void RepeatInfo(void* data,
|
| + wl_keyboard* obj,
|
| + int32_t rate,
|
| + int32_t delay);
|
| +
|
| + wl::Object<wl_keyboard> obj_;
|
| + EventModifiersEvdev modifiers_;
|
| + KeyboardEvdev evdev_;
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_OZONE_PLATFORM_WAYLAND_WAYLAND_KEYBOARD_H_
|
|
|