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

Unified Diff: services/ui/view_manager/view_manager_impl.cc

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: tiny bit more cleanup Created 4 years, 7 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: services/ui/view_manager/view_manager_impl.cc
diff --git a/services/ui/view_manager/view_manager_impl.cc b/services/ui/view_manager/view_manager_impl.cc
index 7e443b211c1bb1050e4b85d8cc391b135b057bb3..0360242dc6475dcfcec0d197dbeb6bece2dd4a3c 100644
--- a/services/ui/view_manager/view_manager_impl.cc
+++ b/services/ui/view_manager/view_manager_impl.cc
@@ -6,6 +6,8 @@
#include <utility>
+#include "base/bind.h"
+
jeffbrown 2016/05/11 23:44:20 remove blank line
mikejurka 2016/05/16 23:35:18 Done.
#include "services/ui/view_manager/view_impl.h"
#include "services/ui/view_manager/view_tree_impl.h"
@@ -36,4 +38,12 @@ void ViewManagerImpl::CreateViewTree(
label);
}
+// this should only really be called by trusted code (ie launcher) -- how to
jeffbrown 2016/05/11 23:44:20 // TODO(mikejurka): This should only be ...
mikejurka 2016/05/16 23:35:18 Done.
+// ensure that?
+void ViewManagerImpl::RegisterViewAssociate(
+ mojo::InterfaceHandle<mojo::ui::ViewAssociate> view_associate) {
+ registry_->RegisterViewAssociate(
+ registry_, mojo::ui::ViewAssociatePtr::Create(std::move(view_associate)));
+}
+
} // namespace view_manager

Powered by Google App Engine
This is Rietveld 408576698