1 // Copyright 2013 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.
5 #ifndef OZONE_WAYLAND_INPUT_DEVICE_H_
6 #define OZONE_WAYLAND_INPUT_DEVICE_H_
8 #include <wayland-client.h>
9 #include "base/basictypes.h"
11 namespace ozonewayland {
13 class WaylandKeyboard;
17 class WaylandInputDevice {
19 WaylandInputDevice(WaylandDisplay* display, uint32_t id);
20 ~WaylandInputDevice();
22 wl_seat* GetInputSeat() { return input_seat_; }
23 WaylandKeyboard* GetKeyBoard() const { return input_keyboard_; }
24 WaylandPointer* GetPointer() const { return input_pointer_; }
27 static void OnSeatCapabilities(void *data,
32 WaylandKeyboard* input_keyboard_;
33 WaylandPointer* input_pointer_;
35 DISALLOW_COPY_AND_ASSIGN(WaylandInputDevice);
38 } // namespace ozonewayland
40 #endif // OZONE_WAYLAND_INPUT_DEVICE_H_