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

Unified Diff: components/mus/mus_app.cc

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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
« no previous file with comments | « components/mus/mus_app.h ('k') | components/mus/public/cpp/lib/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/mus_app.cc
diff --git a/components/mus/mus_app.cc b/components/mus/mus_app.cc
index 335dbca318199f9f38c77bb183687b2503c7ca6e..5caf9f9ce7da86bdeffa08445b84b82321691c36 100644
--- a/components/mus/mus_app.cc
+++ b/components/mus/mus_app.cc
@@ -30,9 +30,9 @@
using mojo::ApplicationConnection;
using mojo::ApplicationImpl;
-using mojo::Gpu;
using mojo::InterfaceRequest;
-using mojo::ViewTreeHostFactory;
+using mus::mojom::WindowTreeHostFactory;
+using mus::mojom::Gpu;
namespace mus {
@@ -71,7 +71,7 @@ void MandolineUIServicesApp::Initialize(ApplicationImpl* app) {
bool MandolineUIServicesApp::ConfigureIncomingConnection(
ApplicationConnection* connection) {
- connection->AddService<ViewTreeHostFactory>(this);
+ connection->AddService<WindowTreeHostFactory>(this);
connection->AddService<Gpu>(this);
return true;
}
@@ -82,12 +82,12 @@ void MandolineUIServicesApp::OnNoMoreRootConnections() {
ClientConnection* MandolineUIServicesApp::CreateClientConnectionForEmbedAtView(
ConnectionManager* connection_manager,
- mojo::InterfaceRequest<mojo::ViewTree> tree_request,
+ mojo::InterfaceRequest<mojom::WindowTree> tree_request,
ConnectionSpecificId creator_id,
mojo::URLRequestPtr request,
const ViewId& root_id,
uint32_t policy_bitmask) {
- mojo::ViewTreeClientPtr client;
+ mojom::WindowTreeClientPtr client;
app_impl_->ConnectToService(request.Pass(), &client);
scoped_ptr<ViewTreeImpl> service(new ViewTreeImpl(
@@ -98,11 +98,11 @@ ClientConnection* MandolineUIServicesApp::CreateClientConnectionForEmbedAtView(
ClientConnection* MandolineUIServicesApp::CreateClientConnectionForEmbedAtView(
ConnectionManager* connection_manager,
- mojo::InterfaceRequest<mojo::ViewTree> tree_request,
+ mojo::InterfaceRequest<mojom::WindowTree> tree_request,
ConnectionSpecificId creator_id,
const ViewId& root_id,
uint32_t policy_bitmask,
- mojo::ViewTreeClientPtr client) {
+ mojom::WindowTreeClientPtr client) {
scoped_ptr<ViewTreeImpl> service(new ViewTreeImpl(
connection_manager, creator_id, root_id, policy_bitmask));
return new DefaultClientConnection(service.Pass(), connection_manager,
@@ -111,7 +111,7 @@ ClientConnection* MandolineUIServicesApp::CreateClientConnectionForEmbedAtView(
void MandolineUIServicesApp::Create(
ApplicationConnection* connection,
- InterfaceRequest<ViewTreeHostFactory> request) {
+ InterfaceRequest<WindowTreeHostFactory> request) {
factory_bindings_.AddBinding(this, request.Pass());
}
@@ -123,9 +123,9 @@ void MandolineUIServicesApp::Create(mojo::ApplicationConnection* connection,
}
void MandolineUIServicesApp::CreateWindowTreeHost(
- mojo::InterfaceRequest<mojo::ViewTreeHost> host,
- mojo::ViewTreeHostClientPtr host_client,
- mojo::ViewTreeClientPtr tree_client) {
+ mojo::InterfaceRequest<mojom::WindowTreeHost> host,
+ mojom::WindowTreeHostClientPtr host_client,
+ mojom::WindowTreeClientPtr tree_client) {
DCHECK(connection_manager_.get());
// TODO(fsamuel): We need to make sure that only the window manager can create
« no previous file with comments | « components/mus/mus_app.h ('k') | components/mus/public/cpp/lib/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698