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

Unified Diff: sky/tools/debugger/debugger.cc

Issue 698543005: Make a pure mojo::View version of the aura::Window FocusController. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: sky comments 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 | « sky/tools/debugger/debugger.h ('k') | sky/tools/debugger/focus_rules.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/debugger.cc
diff --git a/sky/tools/debugger/debugger.cc b/sky/tools/debugger/debugger.cc
index 96e68cc1bff137ccbf7ef46b218dfdc513d3196f..3fb3a9834ab2f1cf023a3688da2d77b5f043ecf2 100644
--- a/sky/tools/debugger/debugger.cc
+++ b/sky/tools/debugger/debugger.cc
@@ -4,6 +4,8 @@
#include "sky/tools/debugger/debugger.h"
+#include "mojo/services/window_manager/basic_focus_rules.h"
+
namespace sky {
namespace debugger {
@@ -58,8 +60,8 @@ void SkyDebugger::OnEmbed(
content_->SetBounds(root_->bounds());
root_->AddChild(content_);
- window_manager_app_->InitFocus(
- new FocusRules(window_manager_app_.get(), content_));
+ window_manager_app_->InitFocus(scoped_ptr<mojo::FocusRules>(
+ new mojo::BasicFocusRules(window_manager_app_.get(), content_)));
if (!pending_url_.empty())
NavigateToURL(pending_url_);
« no previous file with comments | « sky/tools/debugger/debugger.h ('k') | sky/tools/debugger/focus_rules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698