Index: ui/aura/root_window_host_ozone.cc |
diff --git a/ui/aura/root_window_host_ozone.cc b/ui/aura/root_window_host_ozone.cc |
index 5d17f83521d4eaca964b110d60ec10c5d142f11a..3829e11588ad05f4bba5432309e23b524b544f01 100644 |
--- a/ui/aura/root_window_host_ozone.cc |
+++ b/ui/aura/root_window_host_ozone.cc |
@@ -38,16 +38,7 @@ WindowTreeHostOzone::~WindowTreeHostOzone() { |
bool WindowTreeHostOzone::Dispatch(const base::NativeEvent& ne) { |
ui::Event* event = static_cast<ui::Event*>(ne); |
- if (event->IsTouchEvent()) { |
- ui::TouchEvent* touchev = static_cast<ui::TouchEvent*>(ne); |
- delegate_->OnHostTouchEvent(touchev); |
- } else if (event->IsKeyEvent()) { |
- ui::KeyEvent* keyev = static_cast<ui::KeyEvent*>(ne); |
- delegate_->OnHostKeyEvent(keyev); |
- } else if (event->IsMouseEvent()) { |
- ui::MouseEvent* mouseev = static_cast<ui::MouseEvent*>(ne); |
- delegate_->OnHostMouseEvent(mouseev); |
- } |
+ SendEventToProcessor(event); |
return true; |
} |