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

Unified Diff: ui/events/devices/device_hotplug_event_observer.h

Issue 889403003: Make PointerDeviceObserver work under Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/devices/device_hotplug_event_observer.h
diff --git a/ui/events/devices/device_hotplug_event_observer.h b/ui/events/devices/device_hotplug_event_observer.h
index 7219c5e382aef2cefe2cc44e0e5eefcb0e55b4bb..5bf5892fe3c70456fc81d7100df5644a98e769ce 100644
--- a/ui/events/devices/device_hotplug_event_observer.h
+++ b/ui/events/devices/device_hotplug_event_observer.h
@@ -11,6 +11,7 @@
namespace ui {
+struct InputDevice;
struct KeyboardDevice;
struct TouchscreenDevice;
@@ -20,14 +21,24 @@ class EVENTS_DEVICES_EXPORT DeviceHotplugEventObserver {
virtual ~DeviceHotplugEventObserver() {}
// On a hotplug event this is called with the list of available touchscreen
- // devices. The set of touchscreen devices may not necessarily have changed.
+ // devices. The set of touchscreen devices may not have changed.
virtual void OnTouchscreenDevicesUpdated(
const std::vector<TouchscreenDevice>& devices) = 0;
// On a hotplug event this is called with the list of available keyboard
- // devices. The set of keyboard devices may not necessarily have changed.
+ // devices. The set of keyboard devices may not have changed.
virtual void OnKeyboardDevicesUpdated(
const std::vector<KeyboardDevice>& devices) = 0;
+
+ // On a hotplug event this is called with the list of available mice. The set
+ // of mice may not have changed.
+ virtual void OnMouseDevicesUpdated(
+ const std::vector<InputDevice>& devices) = 0;
+
+ // On a hotplug event this is called with the list of available touchpads. The
+ // set of touchpads may not have changed.
+ virtual void OnTouchpadDevicesUpdated(
+ const std::vector<InputDevice>& devices) = 0;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698