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

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

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Created 3 years, 8 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_data_manager.h
diff --git a/ui/events/devices/device_data_manager.h b/ui/events/devices/device_data_manager.h
index 01e62aa98a7ad2874cd5e04494df60ae417bc854..e84e97501667ba7067ea6d98c4b90462a7bcf158 100644
--- a/ui/events/devices/device_data_manager.h
+++ b/ui/events/devices/device_data_manager.h
@@ -59,6 +59,7 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
const std::vector<InputDevice>& GetKeyboardDevices() const override;
const std::vector<InputDevice>& GetMouseDevices() const override;
const std::vector<InputDevice>& GetTouchpadDevices() const override;
+ const std::vector<InputDevice>& GetGamepadDevices() const override;
bool AreDeviceListsComplete() const override;
bool AreTouchscreensEnabled() const override;
@@ -81,6 +82,8 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
const std::vector<InputDevice>& devices) override;
void OnTouchpadDevicesUpdated(
const std::vector<InputDevice>& devices) override;
+ void OnGamepadDevicesUpdated(
+ const std::vector<InputDevice>& devices) override;
void OnDeviceListsComplete() override;
void OnStylusStateChanged(StylusState state) override;
@@ -105,6 +108,7 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
void NotifyObserversKeyboardDeviceConfigurationChanged();
void NotifyObserversMouseDeviceConfigurationChanged();
void NotifyObserversTouchpadDeviceConfigurationChanged();
+ void NotifyObserversGamepadDeviceConfigurationChanged();
void NotifyObserversDeviceListsComplete();
void NotifyObserversStylusStateChanged(StylusState stylus_state);
@@ -112,6 +116,7 @@ class EVENTS_DEVICES_EXPORT DeviceDataManager
std::vector<InputDevice> keyboard_devices_;
std::vector<InputDevice> mouse_devices_;
std::vector<InputDevice> touchpad_devices_;
+ std::vector<InputDevice> gamepad_devices_;
bool device_lists_complete_ = false;
base::ObserverList<InputDeviceEventObserver> observers_;
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/devices/device_data_manager.cc » ('j') | ui/events/event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698