| 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 28 matching lines...) Expand all Loading... |
| 39 class EVENTS_OZONE_EVDEV_EXPORT GestureInterpreterLibevdevCros | 39 class EVENTS_OZONE_EVDEV_EXPORT GestureInterpreterLibevdevCros |
| 40 : public EventReaderLibevdevCros::Delegate { | 40 : public EventReaderLibevdevCros::Delegate { |
| 41 public: | 41 public: |
| 42 GestureInterpreterLibevdevCros(EventModifiersEvdev* modifiers, | 42 GestureInterpreterLibevdevCros(EventModifiersEvdev* modifiers, |
| 43 CursorDelegateEvdev* cursor, | 43 CursorDelegateEvdev* cursor, |
| 44 const EventDispatchCallback& callback); | 44 const EventDispatchCallback& callback); |
| 45 virtual ~GestureInterpreterLibevdevCros(); | 45 virtual ~GestureInterpreterLibevdevCros(); |
| 46 | 46 |
| 47 // Overriden from ui::EventReaderLibevdevCros::Delegate | 47 // Overriden from ui::EventReaderLibevdevCros::Delegate |
| 48 virtual void OnLibEvdevCrosOpen(Evdev* evdev, | 48 virtual void OnLibEvdevCrosOpen(Evdev* evdev, |
| 49 EventStateRec* evstate) OVERRIDE; | 49 EventStateRec* evstate) override; |
| 50 virtual void OnLibEvdevCrosEvent(Evdev* evdev, | 50 virtual void OnLibEvdevCrosEvent(Evdev* evdev, |
| 51 EventStateRec* evstate, | 51 EventStateRec* evstate, |
| 52 const timeval& time) OVERRIDE; | 52 const timeval& time) override; |
| 53 | 53 |
| 54 // Handler for gesture events generated from libgestures. | 54 // Handler for gesture events generated from libgestures. |
| 55 void OnGestureReady(const Gesture* gesture); | 55 void OnGestureReady(const Gesture* gesture); |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 void OnGestureMove(const Gesture* gesture, const GestureMove* move); | 58 void OnGestureMove(const Gesture* gesture, const GestureMove* move); |
| 59 void OnGestureScroll(const Gesture* gesture, const GestureScroll* move); | 59 void OnGestureScroll(const Gesture* gesture, const GestureScroll* move); |
| 60 void OnGestureButtonsChange(const Gesture* gesture, | 60 void OnGestureButtonsChange(const Gesture* gesture, |
| 61 const GestureButtonsChange* move); | 61 const GestureButtonsChange* move); |
| 62 void OnGestureContactInitiated(const Gesture* gesture); | 62 void OnGestureContactInitiated(const Gesture* gesture); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 // Gestures interpretation state. | 82 // Gestures interpretation state. |
| 83 gestures::GestureInterpreter* interpreter_; | 83 gestures::GestureInterpreter* interpreter_; |
| 84 | 84 |
| 85 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); | 85 DISALLOW_COPY_AND_ASSIGN(GestureInterpreterLibevdevCros); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namspace ui | 88 } // namspace ui |
| 89 | 89 |
| 90 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ | 90 #endif // UI_EVENTS_OZONE_EVDEV_LIBGESTURES_GLUE_GESTURE_INTERPRETER_LIBEVDEV_C
ROS_H_ |
| OLD | NEW |