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

Unified Diff: services/ui/public/cpp/input_devices/input_device_client.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: services/ui/public/cpp/input_devices/input_device_client.h
diff --git a/services/ui/public/cpp/input_devices/input_device_client.h b/services/ui/public/cpp/input_devices/input_device_client.h
index 0f7f2c977b23f83047b62203fe62d3276e620788..9d077cff6fb97d2cb29cfe7a038489d53ec62734 100644
--- a/services/ui/public/cpp/input_devices/input_device_client.h
+++ b/services/ui/public/cpp/input_devices/input_device_client.h
@@ -39,6 +39,7 @@ class InputDeviceClient : public mojom::InputDeviceObserverMojo,
const override;
const std::vector<ui::InputDevice>& GetMouseDevices() const override;
const std::vector<ui::InputDevice>& GetTouchpadDevices() const override;
+ const std::vector<ui::InputDevice>& GetGamepadDevices() const override;
bool AreDeviceListsComplete() const override;
bool AreTouchscreensEnabled() const override;
@@ -61,11 +62,14 @@ class InputDeviceClient : public mojom::InputDeviceObserverMojo,
const std::vector<ui::InputDevice>& devices) override;
void OnTouchpadDeviceConfigurationChanged(
const std::vector<ui::InputDevice>& devices) override;
+ void OnGamepadDeviceConfigurationChanged(
+ const std::vector<ui::InputDevice>& devices) override;
void OnDeviceListsComplete(
const std::vector<ui::InputDevice>& keyboard_devices,
const std::vector<ui::TouchscreenDevice>& touchscreen_devices,
const std::vector<ui::InputDevice>& mouse_devices,
- const std::vector<ui::InputDevice>& touchpad_devices) override;
+ const std::vector<ui::InputDevice>& touchpad_devices,
+ const std::vector<ui::InputDevice>& gamepad_devices) override;
void OnStylusStateChanged(StylusState state) override;
private:
@@ -79,6 +83,7 @@ class InputDeviceClient : public mojom::InputDeviceObserverMojo,
std::vector<ui::TouchscreenDevice> touchscreen_devices_;
std::vector<ui::InputDevice> mouse_devices_;
std::vector<ui::InputDevice> touchpad_devices_;
+ std::vector<ui::InputDevice> gamepad_devices_;
bool device_lists_complete_ = false;
// List of in-process observers.

Powered by Google App Engine
This is Rietveld 408576698