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

Unified Diff: content/shell/browser/shell_platform_data_aura.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
Index: content/shell/browser/shell_platform_data_aura.cc
diff --git a/content/shell/browser/shell_platform_data_aura.cc b/content/shell/browser/shell_platform_data_aura.cc
index ff9eb91c853e0f45834ac1810de9708ba826849d..c2d8bac1b65c449ef851aa85c64bc070a4bdc66f 100644
--- a/content/shell/browser/shell_platform_data_aura.cc
+++ b/content/shell/browser/shell_platform_data_aura.cc
@@ -97,7 +97,8 @@ class MinimalInputEventFilter : public ui::internal::InputMethodDelegate,
// ui::internal::InputMethodDelegate:
virtual bool DispatchKeyEventPostIME(const ui::KeyEvent& event) OVERRIDE {
ui::TranslatedKeyEvent aura_event(event);
- return root_->AsWindowTreeHostDelegate()->OnHostKeyEvent(&aura_event);
+ ui::EventDispatchDetails details = root_->OnEventFromSource(&aura_event);
+ return aura_event.handled() || details.dispatcher_destroyed;
}
aura::RootWindow* root_;
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_browsertest.cc ('k') | mojo/examples/aura_demo/root_window_host_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698