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

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

Issue 905083002: Adds Embed() variant to ViewManagerService that takes ViewManagerClient (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: real comments Created 5 years, 10 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/view_manager/public/cpp/lib/view.cc
diff --git a/mojo/services/view_manager/public/cpp/lib/view.cc b/mojo/services/view_manager/public/cpp/lib/view.cc
index 4a7007220e87f2f1385d6e31851af60b2863cc7d..1e8b2b03d298df9218b03b7d5d4be826e1d822b7 100644
--- a/mojo/services/view_manager/public/cpp/lib/view.cc
+++ b/mojo/services/view_manager/public/cpp/lib/view.cc
@@ -379,6 +379,10 @@ void View::Embed(const String& url,
->Embed(url, id_, services.Pass(), exposed_services.Pass());
}
+void View::Embed(ViewManagerClientPtr client) {
+ static_cast<ViewManagerClientImpl*>(manager_)->Embed(id_, client.Pass());
+}
+
////////////////////////////////////////////////////////////////////////////////
// View, protected:

Powered by Google App Engine
This is Rietveld 408576698