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_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS
_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS
_H_ |
6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS
_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_CROS
_H_ |
7 | 7 |
8 #include <gestures/gestures.h> | 8 #include <gestures/gestures.h> |
9 #include <libevdev/libevdev.h> | 9 #include <libevdev/libevdev.h> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 13 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| 14 #include "ui/events/ozone/evdev/event_dispatch_callback.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/libgestures_glue/event_reader_libevdev_cros.h" | 16 #include "ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.h" |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
18 | 19 |
19 class Event; | |
20 class EventDeviceInfo; | 20 class EventDeviceInfo; |
21 class EventModifiersEvdev; | 21 class EventModifiersEvdev; |
22 class CursorDelegateEvdev; | 22 class CursorDelegateEvdev; |
23 | 23 |
24 typedef base::Callback<void(Event*)> EventDispatchCallback; | |
25 | |
26 // Convert libevdev-cros events to ui::Events using libgestures. | 24 // Convert libevdev-cros events to ui::Events using libgestures. |
27 // | 25 // |
28 // This builds a GestureInterpreter for an input device (touchpad or | 26 // This builds a GestureInterpreter for an input device (touchpad or |
29 // mouse). | 27 // mouse). |
30 // | 28 // |
31 // Raw input events must be preprocessed into a form suitable for | 29 // Raw input events must be preprocessed into a form suitable for |
32 // libgestures. The kernel protocol only emits changes to the device state, | 30 // libgestures. The kernel protocol only emits changes to the device state, |
33 // so changes must be accumulated until a sync event. The full device state | 31 // so changes must be accumulated until a sync event. The full device state |
34 // at sync is then processed by libgestures. | 32 // at sync is then processed by libgestures. |
35 // | 33 // |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 | 79 |
82 // Gestures interpretation state. | 80 // Gestures interpretation state. |
83 gestures::GestureInterpreter* interpreter_; | 81 gestures::GestureInterpreter* interpreter_; |
84 | 82 |
85 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); | 83 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); |
86 }; | 84 }; |
87 | 85 |
88 } // namspace ui | 86 } // namspace ui |
89 | 87 |
90 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ | 88 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ |
OLD | NEW |