| Index: ui/events/ozone/evdev/device_event_dispatcher_evdev.h
|
| diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
|
| index 5e132a039ef6d4d0a0e7ef2c0758d4f25de1890d..e39add9c33ee70f5e0b368188798e8fa853c5a47 100644
|
| --- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
|
| +++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
|
| @@ -5,7 +5,12 @@
|
| #ifndef UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
|
| #define UI_EVENTS_OZONE_EVDEV_DEVICE_EVENT_DISPATCHER_H_
|
|
|
| +#include <vector>
|
| +
|
| #include "base/time/time.h"
|
| +#include "ui/events/devices/input_device.h"
|
| +#include "ui/events/devices/keyboard_device.h"
|
| +#include "ui/events/devices/touchscreen_device.h"
|
| #include "ui/events/event_constants.h"
|
| #include "ui/gfx/geometry/point_f.h"
|
| #include "ui/gfx/geometry/vector2d.h"
|
| @@ -59,6 +64,7 @@ class DeviceEventDispatcherEvdev {
|
| DeviceEventDispatcherEvdev() {}
|
| virtual ~DeviceEventDispatcherEvdev() {}
|
|
|
| + // User input events.
|
| virtual void DispatchKeyEvent(int device_id,
|
| unsigned int code,
|
| bool down) = 0;
|
| @@ -74,6 +80,16 @@ class DeviceEventDispatcherEvdev {
|
| const gfx::Vector2d& delta) = 0;
|
| virtual void DispatchScrollEvent(const ScrollEventParams& params) = 0;
|
| virtual void DispatchTouchEvent(const TouchEventParams& params) = 0;
|
| +
|
| + // Device lifecycle events.
|
| + virtual void DispatchKeyboardDevicesUpdated(
|
| + const std::vector<KeyboardDevice>& devices) = 0;
|
| + virtual void DispatchTouchscreenDevicesUpdated(
|
| + const std::vector<TouchscreenDevice>& devices) = 0;
|
| + virtual void DispatchMouseDevicesUpdated(
|
| + const std::vector<InputDevice>& devices) = 0;
|
| + virtual void DispatchTouchpadDevicesUpdated(
|
| + const std::vector<InputDevice>& devices) = 0;
|
| };
|
|
|
| } // namespace
|
|
|