| 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;
|
| }
|
|
|
|
|