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

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

Issue 11414283: Revert 170641 because it broke mac-debug build. (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_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event_handler.cc
===================================================================
--- ui/base/events/event_handler.cc (revision 170644)
+++ ui/base/events/event_handler.cc (working copy)
@@ -4,8 +4,6 @@
#include "ui/base/events/event_handler.h"
-#include "ui/base/events/event.h"
-
namespace ui {
EventHandler::EventHandler() {
@@ -15,16 +13,6 @@
}
EventResult EventHandler::OnEvent(Event* event) {
- if (event->IsKeyEvent())
- return OnKeyEvent(static_cast<KeyEvent*>(event));
- if (event->IsMouseEvent())
- return OnMouseEvent(static_cast<MouseEvent*>(event));
- if (event->IsScrollEvent())
- return OnScrollEvent(static_cast<ScrollEvent*>(event));
- if (event->IsTouchEvent())
- return OnTouchEvent(static_cast<TouchEvent*>(event));
- if (event->IsGestureEvent())
- return OnGestureEvent(static_cast<GestureEvent*>(event));
return ui::ER_UNHANDLED;
}
« no previous file with comments | « ui/base/events/event_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698