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 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch); | 78 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch); |
79 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics); | 79 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics); |
80 | 80 |
81 void Dispatch(scoped_ptr<Event> event); | 81 void Dispatch(scoped_ptr<Event> event); |
82 void DispatchMouseButton(unsigned int modifier, bool down); | 82 void DispatchMouseButton(unsigned int modifier, bool down); |
83 void DispatchChangedKeys(Evdev* evdev, const timeval& time); | 83 void DispatchChangedKeys(Evdev* evdev, const timeval& time); |
84 | 84 |
85 // The unique device id. | 85 // The unique device id. |
86 int id_; | 86 int id_; |
87 | 87 |
| 88 // True if the device may be regarded as a mouse. This includes normal mice |
| 89 // and multi-touch mice. |
| 90 bool is_mouse_; |
| 91 |
88 // Shared modifier state. | 92 // Shared modifier state. |
89 EventModifiersEvdev* modifiers_; | 93 EventModifiersEvdev* modifiers_; |
90 | 94 |
91 // Shared mouse button map. | 95 // Shared mouse button map. |
92 MouseButtonMapEvdev* button_map_; | 96 MouseButtonMapEvdev* button_map_; |
93 | 97 |
94 // Shared cursor state. | 98 // Shared cursor state. |
95 CursorDelegateEvdev* cursor_; | 99 CursorDelegateEvdev* cursor_; |
96 | 100 |
97 // Shared keyboard state. | 101 // Shared keyboard state. |
(...skipping 16 matching lines...) Expand all Loading... |
114 | 118 |
115 // Gesture lib device properties. | 119 // Gesture lib device properties. |
116 scoped_ptr<GestureDeviceProperties> device_properties_; | 120 scoped_ptr<GestureDeviceProperties> device_properties_; |
117 | 121 |
118 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); | 122 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); |
119 }; | 123 }; |
120 | 124 |
121 } // namspace ui | 125 } // namspace ui |
122 | 126 |
123 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ | 127 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ |
OLD | NEW |