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

Unified Diff: ui/events/event_handler.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/event_handler.h
diff --git a/ui/events/event_handler.h b/ui/events/event_handler.h
index 9a9ca2447e95b4f350462cdbd6d5db925f321d88..edbc88122628ff1c4536f2f620183e535a7a88e8 100644
--- a/ui/events/event_handler.h
+++ b/ui/events/event_handler.h
@@ -14,6 +14,7 @@
namespace ui {
+class GamepadEvent;
class CancelModeEvent;
class Event;
class EventDispatcher;
@@ -36,6 +37,8 @@ class EVENTS_EXPORT EventHandler {
// default implementation for un-handled events.
virtual void OnEvent(Event* event);
+ virtual void OnGamepadEvent(GamepadEvent* event);
+
virtual void OnKeyEvent(KeyEvent* event);
virtual void OnMouseEvent(MouseEvent* event);

Powered by Google App Engine
This is Rietveld 408576698