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

Unified Diff: ui/events/ozone/evdev/event_converter_test_util.cc

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/ozone/evdev/event_converter_test_util.cc
diff --git a/ui/events/ozone/evdev/event_converter_test_util.cc b/ui/events/ozone/evdev/event_converter_test_util.cc
index ba9800227ca75fd4cb4da563cb78254b77359474..8279e4275abd4268fff606099dc20bd1f3fde14c 100644
--- a/ui/events/ozone/evdev/event_converter_test_util.cc
+++ b/ui/events/ozone/evdev/event_converter_test_util.cc
@@ -34,6 +34,10 @@ class TestDeviceEventDispatcherEvdev : public DeviceEventDispatcherEvdev {
~TestDeviceEventDispatcherEvdev() override {}
// DeviceEventDispatcher:
+ void DispatchGamepadEvent(const GamepadEventParams& params) override {
+ event_factory_evdev_->DispatchGamepadEvent(params);
+ }
+
void DispatchKeyEvent(const KeyEventParams& params) override {
event_factory_evdev_->DispatchKeyEvent(params);
}
@@ -62,6 +66,10 @@ class TestDeviceEventDispatcherEvdev : public DeviceEventDispatcherEvdev {
event_factory_evdev_->DispatchTouchEvent(params);
}
+ void DispatchGamepadDevicesUpdated(
+ const std::vector<InputDevice>& devices) override {
+ event_factory_evdev_->DispatchGamepadDevicesUpdated(devices);
+ }
void DispatchKeyboardDevicesUpdated(
const std::vector<InputDevice>& devices) override {
event_factory_evdev_->DispatchKeyboardDevicesUpdated(devices);

Powered by Google App Engine
This is Rietveld 408576698