| 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 <bitset> | 8 #include <bitset> |
| 9 #include <gestures/gestures.h> | 9 #include <gestures/gestures.h> |
| 10 #include <libevdev/libevdev.h> | 10 #include <libevdev/libevdev.h> |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void OnGestureButtonsChange(const Gesture* gesture, | 71 void OnGestureButtonsChange(const Gesture* gesture, |
| 72 const GestureButtonsChange* move); | 72 const GestureButtonsChange* move); |
| 73 void OnGestureContactInitiated(const Gesture* gesture); | 73 void OnGestureContactInitiated(const Gesture* gesture); |
| 74 void OnGestureFling(const Gesture* gesture, const GestureFling* fling); | 74 void OnGestureFling(const Gesture* gesture, const GestureFling* fling); |
| 75 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe); | 75 void OnGestureSwipe(const Gesture* gesture, const GestureSwipe* swipe); |
| 76 void OnGestureSwipeLift(const Gesture* gesture, | 76 void OnGestureSwipeLift(const Gesture* gesture, |
| 77 const GestureSwipeLift* swipelift); | 77 const GestureSwipeLift* swipelift); |
| 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 DispatchMouseButton(unsigned int modifier, | 81 void DispatchChangedMouseButtons(unsigned int changed_buttons, |
| 82 bool down, |
| 83 stime_t time); |
| 84 void DispatchMouseButton(unsigned int button, |
| 82 bool down, | 85 bool down, |
| 83 stime_t time); | 86 stime_t time); |
| 84 void DispatchChangedKeys(unsigned long* changed_keys, stime_t timestamp); | 87 void DispatchChangedKeys(unsigned long* changed_keys, stime_t timestamp); |
| 85 void ReleaseKeys(stime_t timestamp); | 88 void ReleaseKeys(stime_t timestamp); |
| 86 bool SetMouseButtonState(unsigned int button, bool down); | 89 bool SetMouseButtonState(unsigned int button, bool down); |
| 87 void ReleaseMouseButtons(stime_t timestamp); | 90 void ReleaseMouseButtons(stime_t timestamp); |
| 88 | 91 |
| 89 // The unique device id. | 92 // The unique device id. |
| 90 int id_; | 93 int id_; |
| 91 | 94 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 121 | 124 |
| 122 // Gesture lib device properties. | 125 // Gesture lib device properties. |
| 123 scoped_ptr<GestureDeviceProperties> device_properties_; | 126 scoped_ptr<GestureDeviceProperties> device_properties_; |
| 124 | 127 |
| 125 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); | 128 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); |
| 126 }; | 129 }; |
| 127 | 130 |
| 128 } // namspace ui | 131 } // namspace ui |
| 129 | 132 |
| 130 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ | 133 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ |
| OLD | NEW |