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

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

Issue 1949233002: Create a RegisterViewAssociate method in ViewManager (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Improved tests 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_registry.cc
diff --git a/services/ui/view_manager/view_registry.cc b/services/ui/view_manager/view_registry.cc
index aee3a466f8af2e4d34c76db26fa1c66fc8244d83..4d23266f106f742c89481bd9e382083dd95763bc 100644
--- a/services/ui/view_manager/view_registry.cc
+++ b/services/ui/view_manager/view_registry.cc
@@ -67,6 +67,18 @@ void ViewRegistry::ConnectAssociates(
connection_error_callback);
}
+// REGISTERING ASSOCIATES
+
+void ViewRegistry::RegisterViewAssociate(
+ mojo::ui::ViewInspector* view_inspector,
+ mojo::ui::ViewAssociatePtr view_associate,
+ const std::string& url,
+ const AssociateConnectionErrorCallback& connection_error_callback) {
+ associate_table_.RegisterViewAssociate(
+ view_inspector, // q: is this the right place to get the view inspector??
+ view_associate.Pass());
+}
+
// CREATE / DESTROY VIEWS
void ViewRegistry::CreateView(

Powered by Google App Engine
This is Rietveld 408576698