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

Unified Diff: mojo/examples/aura_demo/root_window_host_mojo.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 | « mojo/examples/aura_demo/root_window_host_mojo.h ('k') | mojo/examples/launcher/launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/aura_demo/root_window_host_mojo.cc
diff --git a/mojo/examples/aura_demo/root_window_host_mojo.cc b/mojo/examples/aura_demo/root_window_host_mojo.cc
index efaf3b5ee8aff9e137dced0c9519206c488c5c28..af6e87f075689211f48305e2b4ca5e26ec9aeafe 100644
--- a/mojo/examples/aura_demo/root_window_host_mojo.cc
+++ b/mojo/examples/aura_demo/root_window_host_mojo.cc
@@ -155,6 +155,10 @@ void WindowTreeHostMojo::PrepareForShutdown() {
NOTIMPLEMENTED();
}
+ui::EventProcessor* WindowTreeHostMojo::GetEventProcessor() {
+ return delegate_->GetEventProcessor();
+}
+
////////////////////////////////////////////////////////////////////////////////
// WindowTreeHostMojo, NativeViewportClient implementation:
@@ -187,7 +191,7 @@ void WindowTreeHostMojo::OnEvent(const Event& event) {
gfx::Point location(event.location().x(), event.location().y());
ui::MouseEvent ev(static_cast<ui::EventType>(event.action()), location,
location, event.flags(), 0);
- delegate_->OnHostMouseEvent(&ev);
+ SendEventToProcessor(&ev);
break;
}
case ui::ET_KEY_PRESSED:
@@ -196,7 +200,7 @@ void WindowTreeHostMojo::OnEvent(const Event& event) {
static_cast<ui::EventType>(event.action()),
static_cast<ui::KeyboardCode>(event.key_data().key_code()),
event.flags(), event.key_data().is_char());
- delegate_->OnHostKeyEvent(&ev);
+ SendEventToProcessor(&ev);
break;
}
// TODO(beng): touch, etc.
« no previous file with comments | « mojo/examples/aura_demo/root_window_host_mojo.h ('k') | mojo/examples/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698