OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ |
6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ |
7 | 7 |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/message_loop/message_pump_libevent.h" | 9 #include "base/message_loop/message_pump_libevent.h" |
| 10 #include "ui/events/devices/input_device.h" |
10 #include "ui/events/event.h" | 11 #include "ui/events/event.h" |
11 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 12 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
12 #include "ui/events/ozone/evdev/event_converter_evdev.h" | 13 #include "ui/events/ozone/evdev/event_converter_evdev.h" |
13 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" | 14 #include "ui/events/ozone/evdev/event_modifiers_evdev.h" |
14 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 15 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
15 #include "ui/events/ozone/evdev/keyboard_evdev.h" | 16 #include "ui/events/ozone/evdev/keyboard_evdev.h" |
16 #include "ui/events/ozone/evdev/mouse_button_map_evdev.h" | 17 #include "ui/events/ozone/evdev/mouse_button_map_evdev.h" |
17 | 18 |
18 struct input_event; | 19 struct input_event; |
19 | 20 |
20 namespace ui { | 21 namespace ui { |
21 | 22 |
22 class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl | 23 class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdevImpl |
23 : public EventConverterEvdev { | 24 : public EventConverterEvdev { |
24 public: | 25 public: |
25 EventConverterEvdevImpl(int fd, | 26 EventConverterEvdevImpl(int fd, |
26 base::FilePath path, | 27 base::FilePath path, |
27 int id, | 28 int id, |
| 29 InputDeviceType type, |
28 EventModifiersEvdev* modifiers, | 30 EventModifiersEvdev* modifiers, |
29 MouseButtonMapEvdev* button_map, | 31 MouseButtonMapEvdev* button_map, |
30 CursorDelegateEvdev* cursor, | 32 CursorDelegateEvdev* cursor, |
31 KeyboardEvdev* keyboard, | 33 KeyboardEvdev* keyboard, |
32 const EventDispatchCallback& callback); | 34 const EventDispatchCallback& callback); |
33 ~EventConverterEvdevImpl() override; | 35 ~EventConverterEvdevImpl() override; |
34 | 36 |
35 // EventConverterEvdev: | 37 // EventConverterEvdev: |
36 void OnFileCanReadWithoutBlocking(int fd) override; | 38 void OnFileCanReadWithoutBlocking(int fd) override; |
37 | 39 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Callback for dispatching events. | 74 // Callback for dispatching events. |
73 EventDispatchCallback callback_; | 75 EventDispatchCallback callback_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl); | 77 DISALLOW_COPY_AND_ASSIGN(EventConverterEvdevImpl); |
76 }; | 78 }; |
77 | 79 |
78 } // namespace ui | 80 } // namespace ui |
79 | 81 |
80 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ | 82 #endif // UI_EVENTS_OZONE_EVDEV_EVENT_CONVERTER_EVDEV_IMPL_H_ |
81 | 83 |
OLD | NEW |