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

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

Issue 1552043002: Make Mozart view manager use the new compositor. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-12
Patch Set: Created 4 years, 12 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_tree_host_impl.cc
diff --git a/services/ui/view_manager/view_tree_host_impl.cc b/services/ui/view_manager/view_tree_host_impl.cc
index e970a695990ef640d9b2643231ee09b47959cbaf..654b4113abba59789ac2955546702640ea50996e 100644
--- a/services/ui/view_manager/view_tree_host_impl.cc
+++ b/services/ui/view_manager/view_tree_host_impl.cc
@@ -2,9 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "services/ui/view_manager/view_tree_host_impl.h"
+
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "services/ui/view_manager/view_tree_host_impl.h"
namespace view_manager {
@@ -18,6 +19,11 @@ ViewTreeHostImpl::ViewTreeHostImpl(
ViewTreeHostImpl::~ViewTreeHostImpl() {}
+void ViewTreeHostImpl::GetServiceProvider(
+ mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) {
+ service_provider_bindings_.AddBinding(this, service_provider.Pass());
+}
+
void ViewTreeHostImpl::RequestLayout() {
registry_->RequestLayout(state_);
}
@@ -44,4 +50,11 @@ void ViewTreeHostImpl::LayoutRoot(
base::Bind(&RunLayoutRootCallback, callback));
}
+void ViewTreeHostImpl::ConnectToService(
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle client_handle) {
+ registry_->ConnectToViewTreeService(state_, service_name,
+ client_handle.Pass());
+}
+
} // namespace view_manager

Powered by Google App Engine
This is Rietveld 408576698