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

Unified Diff: ui/aura/root_window_host_x11.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_host_win.cc ('k') | ui/aura/root_window_host_x11_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window_host_x11.cc
diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
index aad11ffa6ce106300cfd7524d665bc8fd189d070..d912456a4444faae16db55555daf42c3f75e8c83 100644
--- a/ui/aura/root_window_host_x11.cc
+++ b/ui/aura/root_window_host_x11.cc
@@ -429,12 +429,12 @@ bool WindowTreeHostX11::Dispatch(const base::NativeEvent& event) {
}
case KeyPress: {
ui::KeyEvent keydown_event(xev, false);
- delegate_->OnHostKeyEvent(&keydown_event);
+ SendEventToProcessor(&keydown_event);
break;
}
case KeyRelease: {
ui::KeyEvent keyup_event(xev, false);
- delegate_->OnHostKeyEvent(&keyup_event);
+ SendEventToProcessor(&keyup_event);
break;
}
case ButtonPress: {
@@ -902,7 +902,7 @@ void WindowTreeHostX11::DispatchXI2Event(const base::NativeEvent& event) {
#endif // defined(USE_XI2_MT)
}
#endif // defined(OS_CHROMEOS)
- delegate_->OnHostTouchEvent(&touchev);
+ SendEventToProcessor(&touchev);
break;
}
case ui::ET_MOUSE_MOVED:
@@ -955,7 +955,7 @@ void WindowTreeHostX11::DispatchXI2Event(const base::NativeEvent& event) {
case ui::ET_SCROLL_FLING_CANCEL:
case ui::ET_SCROLL: {
ui::ScrollEvent scrollev(xev);
- delegate_->OnHostScrollEvent(&scrollev);
+ SendEventToProcessor(&scrollev);
break;
}
case ui::ET_UMA_DATA:
@@ -1001,7 +1001,7 @@ void WindowTreeHostX11::TranslateAndDispatchMouseEvent(
event->set_location(location);
event->set_root_location(location);
}
- delegate_->OnHostMouseEvent(event);
+ SendEventToProcessor(event);
}
void WindowTreeHostX11::UpdateIsInternalDisplay() {
« no previous file with comments | « ui/aura/root_window_host_win.cc ('k') | ui/aura/root_window_host_x11_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698