| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 const gfx::PointF location; | 93 const gfx::PointF location; |
| 94 const gfx::Vector2dF delta; | 94 const gfx::Vector2dF delta; |
| 95 const gfx::Vector2dF ordinal_delta; | 95 const gfx::Vector2dF ordinal_delta; |
| 96 int finger_count; | 96 int finger_count; |
| 97 const base::TimeDelta timestamp; | 97 const base::TimeDelta timestamp; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams { | 100 struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams { |
| 101 TouchEventParams(int device_id, | 101 TouchEventParams(int device_id, |
| 102 int touch_id, | 102 int touch_id, |
| 103 int tracking_id, |
| 103 EventType type, | 104 EventType type, |
| 104 const gfx::PointF& location, | 105 const gfx::PointF& location, |
| 105 const gfx::Vector2dF& radii, | 106 const gfx::Vector2dF& radii, |
| 106 float pressure, | 107 float pressure, |
| 107 const base::TimeDelta& timestamp); | 108 const base::TimeDelta& timestamp); |
| 108 TouchEventParams(const TouchEventParams& other); | 109 TouchEventParams(const TouchEventParams& other); |
| 109 ~TouchEventParams(); | 110 ~TouchEventParams(); |
| 110 | 111 |
| 111 int device_id; | 112 int device_id; |
| 112 int touch_id; | 113 int touch_id; |
| 114 int tracking_id; |
| 113 EventType type; | 115 EventType type; |
| 114 gfx::PointF location; | 116 gfx::PointF location; |
| 115 gfx::Vector2dF radii; | 117 gfx::Vector2dF radii; |
| 116 float pressure; | 118 float pressure; |
| 117 base::TimeDelta timestamp; | 119 base::TimeDelta timestamp; |
| 118 }; | 120 }; |
| 119 | 121 |
| 120 // Interface used by device objects for event dispatch. | 122 // Interface used by device objects for event dispatch. |
| 121 class EVENTS_OZONE_EVDEV_EXPORT DeviceEventDispatcherEvdev { | 123 class EVENTS_OZONE_EVDEV_EXPORT DeviceEventDispatcherEvdev { |
| 122 public: | 124 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 139 const std::vector<TouchscreenDevice>& devices) = 0; | 141 const std::vector<TouchscreenDevice>& devices) = 0; |
| 140 virtual void DispatchMouseDevicesUpdated( | 142 virtual void DispatchMouseDevicesUpdated( |
| 141 const std::vector<InputDevice>& devices) = 0; | 143 const std::vector<InputDevice>& devices) = 0; |
| 142 virtual void DispatchTouchpadDevicesUpdated( | 144 virtual void DispatchTouchpadDevicesUpdated( |
| 143 const std::vector<InputDevice>& devices) = 0; | 145 const std::vector<InputDevice>& devices) = 0; |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 } // namespace ui | 148 } // namespace ui |
| 147 | 149 |
| 148 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ | 150 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ |
| OLD | NEW |