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

Unified Diff: mojo/services/window_manager/window_manager_app.cc

Issue 737913002: Dispatch key events to the currently focused window. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Redo FocusController storage so that it is a local property on a view. Created 6 years, 1 month 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/services/window_manager/view_targeter_unittest.cc ('k') | sky/tools/debugger/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/window_manager_app.cc
diff --git a/mojo/services/window_manager/window_manager_app.cc b/mojo/services/window_manager/window_manager_app.cc
index cb807d1da97cc210a13d2f4019673e48cb691549..4fb3614af9e30d2558d25ebe4bb4b94c6a4871c5 100644
--- a/mojo/services/window_manager/window_manager_app.cc
+++ b/mojo/services/window_manager/window_manager_app.cc
@@ -123,6 +123,9 @@ bool WindowManagerApp::IsReady() const {
void WindowManagerApp::InitFocus(scoped_ptr<mojo::FocusRules> rules) {
focus_controller_.reset(new mojo::FocusController(rules.Pass()));
focus_controller_->AddObserver(this);
+
+ DCHECK(root_);
+ SetFocusController(root_, focus_controller_.get());
}
void WindowManagerApp::Embed(
« no previous file with comments | « mojo/services/window_manager/view_targeter_unittest.cc ('k') | sky/tools/debugger/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698