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

Unified Diff: mojo/services/public/cpp/view_manager/lib/view_tree_node.cc

Issue 331563003: Launching + Views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 6 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: mojo/services/public/cpp/view_manager/lib/view_tree_node.cc
diff --git a/mojo/services/public/cpp/view_manager/lib/view_tree_node.cc b/mojo/services/public/cpp/view_manager/lib/view_tree_node.cc
index 5a6c1d283f08eb5df71c91beced0a1419b0a96da..46972e823988890dcf241382fcd991b9ccaf2aab 100644
--- a/mojo/services/public/cpp/view_manager/lib/view_tree_node.cc
+++ b/mojo/services/public/cpp/view_manager/lib/view_tree_node.cc
@@ -357,6 +357,11 @@ void ViewTreeNode::SetActiveView(View* view) {
}
}
+void ViewTreeNode::SetFocus() {
+ if (manager_)
+ static_cast<ViewManagerSynchronizer*>(manager_)->SetFocus(id_);
+}
+
void ViewTreeNode::Embed(const String& url) {
static_cast<ViewManagerSynchronizer*>(manager_)->Embed(url, id_);
}

Powered by Google App Engine
This is Rietveld 408576698