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

Unified Diff: services/ui/view_manager/view_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_host_impl.cc
diff --git a/services/ui/view_manager/view_host_impl.cc b/services/ui/view_manager/view_host_impl.cc
index fef8f0b5192eaa04ad8ce551157850d3166d8c95..976644efb8425043cb1de8d6d814a05982280a59 100644
--- a/services/ui/view_manager/view_host_impl.cc
+++ b/services/ui/view_manager/view_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_host_impl.h"
+
#include "base/bind.h"
#include "base/bind_helpers.h"
-#include "services/ui/view_manager/view_host_impl.h"
namespace view_manager {
@@ -19,8 +20,13 @@ ViewHostImpl::ViewHostImpl(
ViewHostImpl::~ViewHostImpl() {}
void ViewHostImpl::GetServiceProvider(
- mojo::InterfaceRequest<mojo::ServiceProvider> service_provider) {
- state_->GetServiceProvider(service_provider.Pass());
+ mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request) {
+ service_provider_bindings_.AddBinding(this, service_provider_request.Pass());
+}
+
+void ViewHostImpl::CreateScene(
+ mojo::InterfaceRequest<mojo::gfx::composition::Scene> scene) {
+ registry_->CreateScene(state_, scene.Pass());
}
void ViewHostImpl::RequestLayout() {
@@ -50,4 +56,10 @@ void ViewHostImpl::LayoutChild(
base::Bind(&RunLayoutChildCallback, callback));
}
+void ViewHostImpl::ConnectToService(
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle client_handle) {
+ registry_->ConnectToViewService(state_, service_name, client_handle.Pass());
+}
+
} // namespace view_manager

Powered by Google App Engine
This is Rietveld 408576698