| 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" |
| 11 #include "ui/events/devices/input_device.h" | 11 #include "ui/events/devices/input_device.h" |
| 12 #include "ui/events/devices/keyboard_device.h" | |
| 13 #include "ui/events/devices/touchscreen_device.h" | 12 #include "ui/events/devices/touchscreen_device.h" |
| 14 #include "ui/events/event.h" | 13 #include "ui/events/event.h" |
| 15 #include "ui/events/event_constants.h" | 14 #include "ui/events/event_constants.h" |
| 16 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 15 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
| 17 #include "ui/gfx/geometry/point_f.h" | 16 #include "ui/gfx/geometry/point_f.h" |
| 18 #include "ui/gfx/geometry/vector2d.h" | 17 #include "ui/gfx/geometry/vector2d.h" |
| 19 #include "ui/gfx/geometry/vector2d_f.h" | 18 #include "ui/gfx/geometry/vector2d_f.h" |
| 20 | 19 |
| 21 namespace ui { | 20 namespace ui { |
| 22 | 21 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 virtual void DispatchMouseMoveEvent(const MouseMoveEventParams& params) = 0; | 148 virtual void DispatchMouseMoveEvent(const MouseMoveEventParams& params) = 0; |
| 150 virtual void DispatchMouseButtonEvent( | 149 virtual void DispatchMouseButtonEvent( |
| 151 const MouseButtonEventParams& params) = 0; | 150 const MouseButtonEventParams& params) = 0; |
| 152 virtual void DispatchMouseWheelEvent(const MouseWheelEventParams& params) = 0; | 151 virtual void DispatchMouseWheelEvent(const MouseWheelEventParams& params) = 0; |
| 153 virtual void DispatchPinchEvent(const PinchEventParams& params) = 0; | 152 virtual void DispatchPinchEvent(const PinchEventParams& params) = 0; |
| 154 virtual void DispatchScrollEvent(const ScrollEventParams& params) = 0; | 153 virtual void DispatchScrollEvent(const ScrollEventParams& params) = 0; |
| 155 virtual void DispatchTouchEvent(const TouchEventParams& params) = 0; | 154 virtual void DispatchTouchEvent(const TouchEventParams& params) = 0; |
| 156 | 155 |
| 157 // Device lifecycle events. | 156 // Device lifecycle events. |
| 158 virtual void DispatchKeyboardDevicesUpdated( | 157 virtual void DispatchKeyboardDevicesUpdated( |
| 159 const std::vector<KeyboardDevice>& devices) = 0; | 158 const std::vector<InputDevice>& devices) = 0; |
| 160 virtual void DispatchTouchscreenDevicesUpdated( | 159 virtual void DispatchTouchscreenDevicesUpdated( |
| 161 const std::vector<TouchscreenDevice>& devices) = 0; | 160 const std::vector<TouchscreenDevice>& devices) = 0; |
| 162 virtual void DispatchMouseDevicesUpdated( | 161 virtual void DispatchMouseDevicesUpdated( |
| 163 const std::vector<InputDevice>& devices) = 0; | 162 const std::vector<InputDevice>& devices) = 0; |
| 164 virtual void DispatchTouchpadDevicesUpdated( | 163 virtual void DispatchTouchpadDevicesUpdated( |
| 165 const std::vector<InputDevice>& devices) = 0; | 164 const std::vector<InputDevice>& devices) = 0; |
| 166 virtual void DispatchDeviceListsComplete() = 0; | 165 virtual void DispatchDeviceListsComplete() = 0; |
| 167 }; | 166 }; |
| 168 | 167 |
| 169 } // namespace ui | 168 } // namespace ui |
| 170 | 169 |
| 171 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ | 170 #endif // UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_ |
| OLD | NEW |