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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 int device_id; | 74 int device_id; |
75 gfx::PointF location; | 75 gfx::PointF location; |
76 gfx::Vector2d delta; | 76 gfx::Vector2d delta; |
77 base::TimeDelta timestamp; | 77 base::TimeDelta timestamp; |
78 }; | 78 }; |
79 | 79 |
80 struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams { | 80 struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams { |
81 ScrollEventParams(int device_id, | 81 ScrollEventParams(int device_id, |
82 EventType type, | 82 EventType type, |
83 const gfx::PointF location, | 83 const gfx::PointF location, |
84 const gfx::Vector2dF delta, | 84 const gfx::Vector2dF& delta, |
85 const gfx::Vector2dF ordinal_delta, | 85 const gfx::Vector2dF& ordinal_delta, |
86 int finger_count, | 86 int finger_count, |
87 const base::TimeDelta timestamp); | 87 const base::TimeDelta timestamp); |
88 ScrollEventParams(const ScrollEventParams& other); | 88 ScrollEventParams(const ScrollEventParams& other); |
89 ~ScrollEventParams(); | 89 ~ScrollEventParams(); |
90 | 90 |
91 int device_id; | 91 int device_id; |
92 EventType type; | 92 EventType type; |
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; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 const std::vector<TouchscreenDevice>& devices) = 0; | 139 const std::vector<TouchscreenDevice>& devices) = 0; |
140 virtual void DispatchMouseDevicesUpdated( | 140 virtual void DispatchMouseDevicesUpdated( |
141 const std::vector<InputDevice>& devices) = 0; | 141 const std::vector<InputDevice>& devices) = 0; |
142 virtual void DispatchTouchpadDevicesUpdated( | 142 virtual void DispatchTouchpadDevicesUpdated( |
143 const std::vector<InputDevice>& devices) = 0; | 143 const std::vector<InputDevice>& devices) = 0; |
144 }; | 144 }; |
145 | 145 |
146 } // namespace ui | 146 } // namespace ui |
147 | 147 |
148 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ | 148 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ |
OLD | NEW |