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

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: updates for events_unittests 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
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
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.h » ('j') | ui/events/ozone/evdev/input_controller_evdev.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698