Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: ui/events/ozone/evdev/libgestures_glue/gesture_interpreter_libevdev_cros.h

Issue 889673004: ozone: evdev: Use kernel timestamps for mouse events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase error Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698