| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void OnGestureButtonsChange(const Gesture* gesture, | 69 void OnGestureButtonsChange(const Gesture* gesture, |
| 70 const GestureButtonsChange* move); | 70 const GestureButtonsChange* move); |
| 71 void OnGestureContactInitiated(const Gesture* gesture); | 71 void OnGestureContactInitiated(const Gesture* gesture); |
| 72 void OnGestureFling(const Gesture* gesture, const GestureFling* fling); | 72 void OnGestureFling(const Gesture* gesture, const GestureFling* fling); |
| 73 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe); | 73 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe); |
| 74 void OnGestureSwipeLift(const Gesture* gesture, | 74 void OnGestureSwipeLift(const Gesture* gesture, |
| 75 const GestureSwipeLift* swipelift); | 75 const GestureSwipeLift* swipelift); |
| 76 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch); | 76 void OnGesturePinch(const Gesture* gesture, const GesturePinch* pinch); |
| 77 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics); | 77 void OnGestureMetrics(const Gesture* gesture, const GestureMetrics* metrics); |
| 78 | 78 |
| 79 void DispatchMouseButton(unsigned int modifier, bool down); | 79 void DispatchMouseButton(unsigned int modifier, |
| 80 bool down, |
| 81 stime_t time); |
| 80 void DispatchChangedKeys(Evdev* evdev, const timeval& time); | 82 void DispatchChangedKeys(Evdev* evdev, const timeval& time); |
| 81 | 83 |
| 82 // The unique device id. | 84 // The unique device id. |
| 83 int id_; | 85 int id_; |
| 84 | 86 |
| 85 // True if the device may be regarded as a mouse. This includes normal mice | 87 // True if the device may be regarded as a mouse. This includes normal mice |
| 86 // and multi-touch mice. | 88 // and multi-touch mice. |
| 87 bool is_mouse_; | 89 bool is_mouse_; |
| 88 | 90 |
| 89 // The evdev codes of the keys which should be processed. nullptr if all keys | 91 // The evdev codes of the keys which should be processed. nullptr if all keys |
| (...skipping 20 matching lines...) Expand all Loading... |
| 110 | 112 |
| 111 // Gesture lib device properties. | 113 // Gesture lib device properties. |
| 112 scoped_ptr<GestureDeviceProperties> device_properties_; | 114 scoped_ptr<GestureDeviceProperties> device_properties_; |
| 113 | 115 |
| 114 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); | 116 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); |
| 115 }; | 117 }; |
| 116 | 118 |
| 117 } // namspace ui | 119 } // namspace ui |
| 118 | 120 |
| 119 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ | 121 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ |
| OLD | NEW |