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

Unified Diff: ui/base/events/event_handler.h

Issue 11299285: events: Dispatch all events through EventHandler::OnEvent from the dispatcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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/base/events/event_dispatcher.cc ('k') | ui/base/events/event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event_handler.h
diff --git a/ui/base/events/event_handler.h b/ui/base/events/event_handler.h
index 567474f0aa1919290cf3590004323f3f1a79ef05..5f0652140ce73968e536ded634ec1fe07db7b81f 100644
--- a/ui/base/events/event_handler.h
+++ b/ui/base/events/event_handler.h
@@ -28,6 +28,10 @@ class UI_EXPORT EventHandler {
EventHandler();
virtual ~EventHandler();
+ // This is called for all events. The default implementation routes the event
+ // to one of the event-specific callbacks (OnKeyEvent, OnMouseEvent etc.). If
+ // this is overridden, then normally, the override should chain into the
+ // default implementation for un-handled events.
virtual EventResult OnEvent(Event* event);
virtual EventResult OnKeyEvent(KeyEvent* event);
« no previous file with comments | « ui/base/events/event_dispatcher.cc ('k') | ui/base/events/event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698