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

Unified Diff: ui/aura/root_window_host_ozone.cc

Issue 147203004: aura: Remove event-dispatch methods from WindowTreeHostDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win Created 6 years, 11 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
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698