- add sources.
[platform/framework/web/crosswalk.git] / src / ozone / wayland / input_device.h
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.
4
5 #ifndef OZONE_WAYLAND_INPUT_DEVICE_H_
6 #define OZONE_WAYLAND_INPUT_DEVICE_H_
7
8 #include <wayland-client.h>
9 #include "base/basictypes.h"
10
11 namespace ozonewayland {
12
13 class WaylandKeyboard;
14 class WaylandPointer;
15 class WaylandDisplay;
16
17 class WaylandInputDevice {
18  public:
19   WaylandInputDevice(WaylandDisplay* display, uint32_t id);
20   ~WaylandInputDevice();
21
22   wl_seat* GetInputSeat() { return input_seat_; }
23   WaylandKeyboard* GetKeyBoard() const { return input_keyboard_; }
24   WaylandPointer* GetPointer() const { return input_pointer_; }
25
26  private:
27   static void OnSeatCapabilities(void *data,
28                                  wl_seat *seat,
29                                  uint32_t caps);
30
31   wl_seat* input_seat_;
32   WaylandKeyboard* input_keyboard_;
33   WaylandPointer* input_pointer_;
34
35   DISALLOW_COPY_AND_ASSIGN(WaylandInputDevice);
36 };
37
38 }  // namespace ozonewayland
39
40 #endif  // OZONE_WAYLAND_INPUT_DEVICE_H_