Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: ui/events/ozone/evdev/device_event_dispatcher_evdev.h

Issue 868043003: [PATCH 8/11] ozone: evdev: Plumb device changes to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f109c9f35af9a20d07a8a025b91b8689215f03e3..70bd4b0d22de0f12638bb98ed04763187eda9086 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/events/ozone/evdev/events_ozone_evdev_export.h"
#include "ui/gfx/geometry/point_f.h"
@@ -107,6 +112,7 @@ class EVENTS_OZONE_EVDEV_EXPORT DeviceEventDispatcherEvdev {
DeviceEventDispatcherEvdev() {}
virtual ~DeviceEventDispatcherEvdev() {}
+ // User input events.
virtual void DispatchKeyEvent(const KeyEventParams& params) = 0;
virtual void DispatchMouseMoveEvent(const MouseMoveEventParams& params) = 0;
virtual void DispatchMouseButtonEvent(
@@ -114,6 +120,16 @@ class EVENTS_OZONE_EVDEV_EXPORT DeviceEventDispatcherEvdev {
virtual void DispatchMouseWheelEvent(const MouseWheelEventParams& params) = 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 ui
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698