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

Unified Diff: mojo/services/view_manager/view_manager_service_impl.cc

Issue 405163002: Add EmbedRoot to ViewManagerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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/view_manager_service_impl.cc
diff --git a/mojo/services/view_manager/view_manager_service_impl.cc b/mojo/services/view_manager/view_manager_service_impl.cc
index ee2c795001ded8b944f3c016b77010483627373c..c115d54d883ba5550bfdcaaef0ac6c7beb637a9f 100644
--- a/mojo/services/view_manager/view_manager_service_impl.cc
+++ b/mojo/services/view_manager/view_manager_service_impl.cc
@@ -753,6 +753,12 @@ void ViewManagerServiceImpl::Embed(const String& url,
callback.Run(success);
}
+void ViewManagerServiceImpl::EmbedRoot(const String& url,
+ const Callback<void(bool)>& callback) {
+ root_node_manager_->EmbedRoot(url);
+ callback.Run(true);
+}
+
void ViewManagerServiceImpl::DispatchOnViewInputEvent(Id transport_view_id,
EventPtr event) {
// We only allow the WM to dispatch events. At some point this function will

Powered by Google App Engine
This is Rietveld 408576698