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

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

Issue 2805793002: ozone: evdev: Add gamepad support (Closed)
Patch Set: Support Gamepad in Ozone. Created 3 years, 7 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
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/event_device_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3c762d92d5e3867fc23810736d3b441bc8e1499c 100644
--- a/ui/events/ozone/evdev/event_converter_test_util.cc
+++ b/ui/events/ozone/evdev/event_converter_test_util.cc
@@ -34,6 +34,7 @@ class TestDeviceEventDispatcherEvdev : public DeviceEventDispatcherEvdev {
~TestDeviceEventDispatcherEvdev() override {}
// DeviceEventDispatcher:
+
void DispatchKeyEvent(const KeyEventParams& params) override {
event_factory_evdev_->DispatchKeyEvent(params);
}
@@ -85,6 +86,15 @@ class TestDeviceEventDispatcherEvdev : public DeviceEventDispatcherEvdev {
event_factory_evdev_->DispatchStylusStateChanged(stylus_state);
}
+ void DispatchGamepadEvent(const GamepadEvent& event) override {
+ event_factory_evdev_->DispatchGamepadEvent(event);
+ }
+
+ void DispatchGamepadDevicesUpdated(
+ const std::vector<InputDevice>& devices) override {
+ event_factory_evdev_->DispatchGamepadDevicesUpdated(devices);
+ }
+
private:
EventFactoryEvdev* event_factory_evdev_;
};
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev.cc ('k') | ui/events/ozone/evdev/event_device_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698