| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DEVICE_EVENT_DISPATCHER_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 int device_id; | 31 int device_id; |
| 32 unsigned int code; | 32 unsigned int code; |
| 33 bool down; | 33 bool down; |
| 34 bool suppress_auto_repeat; | 34 bool suppress_auto_repeat; |
| 35 base::TimeTicks timestamp; | 35 base::TimeTicks timestamp; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 struct EVENTS_OZONE_EVDEV_EXPORT MouseMoveEventParams { | 38 struct EVENTS_OZONE_EVDEV_EXPORT MouseMoveEventParams { |
| 39 MouseMoveEventParams(int device_id, | 39 MouseMoveEventParams(int device_id, |
| 40 int flags, |
| 40 const gfx::PointF& location, | 41 const gfx::PointF& location, |
| 41 const PointerDetails& details, | 42 const PointerDetails& details, |
| 42 base::TimeTicks timestamp); | 43 base::TimeTicks timestamp); |
| 43 MouseMoveEventParams(const MouseMoveEventParams& other); | 44 MouseMoveEventParams(const MouseMoveEventParams& other); |
| 44 ~MouseMoveEventParams(); | 45 ~MouseMoveEventParams(); |
| 45 | 46 |
| 46 int device_id; | 47 int device_id; |
| 48 int flags; |
| 47 gfx::PointF location; | 49 gfx::PointF location; |
| 48 PointerDetails pointer_details; | 50 PointerDetails pointer_details; |
| 49 base::TimeTicks timestamp; | 51 base::TimeTicks timestamp; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams { | 54 struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams { |
| 53 MouseButtonEventParams(int device_id, | 55 MouseButtonEventParams(int device_id, |
| 56 int flags, |
| 54 const gfx::PointF& location, | 57 const gfx::PointF& location, |
| 55 unsigned int button, | 58 unsigned int button, |
| 56 bool down, | 59 bool down, |
| 57 bool allow_remap, | 60 bool allow_remap, |
| 58 const PointerDetails& details, | 61 const PointerDetails& details, |
| 59 base::TimeTicks timestamp); | 62 base::TimeTicks timestamp); |
| 60 MouseButtonEventParams(const MouseButtonEventParams& other); | 63 MouseButtonEventParams(const MouseButtonEventParams& other); |
| 61 ~MouseButtonEventParams(); | 64 ~MouseButtonEventParams(); |
| 62 | 65 |
| 63 int device_id; | 66 int device_id; |
| 67 int flags; |
| 64 gfx::PointF location; | 68 gfx::PointF location; |
| 65 unsigned int button; | 69 unsigned int button; |
| 66 bool down; | 70 bool down; |
| 67 bool allow_remap; | 71 bool allow_remap; |
| 68 PointerDetails pointer_details; | 72 PointerDetails pointer_details; |
| 69 base::TimeTicks timestamp; | 73 base::TimeTicks timestamp; |
| 70 }; | 74 }; |
| 71 | 75 |
| 72 struct EVENTS_OZONE_EVDEV_EXPORT MouseWheelEventParams { | 76 struct EVENTS_OZONE_EVDEV_EXPORT MouseWheelEventParams { |
| 73 MouseWheelEventParams(int device_id, | 77 MouseWheelEventParams(int device_id, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 virtual void DispatchMouseDevicesUpdated( | 165 virtual void DispatchMouseDevicesUpdated( |
| 162 const std::vector<InputDevice>& devices) = 0; | 166 const std::vector<InputDevice>& devices) = 0; |
| 163 virtual void DispatchTouchpadDevicesUpdated( | 167 virtual void DispatchTouchpadDevicesUpdated( |
| 164 const std::vector<InputDevice>& devices) = 0; | 168 const std::vector<InputDevice>& devices) = 0; |
| 165 virtual void DispatchDeviceListsComplete() = 0; | 169 virtual void DispatchDeviceListsComplete() = 0; |
| 166 }; | 170 }; |
| 167 | 171 |
| 168 } // namespace ui | 172 } // namespace ui |
| 169 | 173 |
| 170 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ | 174 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ |
| OLD | NEW |