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

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, 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..ca4a3ab9a0e221d27188287c5d7c66e9f8097475 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,16 @@ class TestDeviceEventDispatcherEvdev : public DeviceEventDispatcherEvdev {
event_factory_evdev_->DispatchStylusStateChanged(stylus_state);
}
+ // Dispatch Gamepad Event.
scottmg 2017/05/01 18:20:51 I don't think this comment is helping anyone, give
jkwang 2017/05/01 22:21:56 Done.
+ 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_;
};

Powered by Google App Engine
This is Rietveld 408576698