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

Unified Diff: components/mus/mus_app.cc

Issue 1675083002: Rename ApplicationDelegate to ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 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
« no previous file with comments | « components/mus/mus_app.h ('k') | components/mus/public/cpp/tests/window_server_test_base.h » ('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 b7ffa4dd074dcdf64bd7552203c21b828a034154..cd7a78679c2b5518d9cff37a1a64e52e4b8f5867 100644
--- a/components/mus/mus_app.cc
+++ b/components/mus/mus_app.cc
@@ -16,7 +16,7 @@
#include "components/mus/ws/window_tree_impl.h"
#include "mojo/public/c/system/main.h"
#include "mojo/services/tracing/public/cpp/tracing_impl.h"
-#include "mojo/shell/public/cpp/application_connection.h"
+#include "mojo/shell/public/cpp/connection.h"
#include "mojo/shell/public/cpp/shell.h"
#include "ui/events/event_switches.h"
#include "ui/events/platform/platform_event_source.h"
@@ -30,7 +30,7 @@
#include "ui/ozone/public/ozone_platform.h"
#endif
-using mojo::ApplicationConnection;
+using mojo::Connection;
using mojo::InterfaceRequest;
using mus::mojom::WindowTreeHostFactory;
using mus::mojom::Gpu;
@@ -90,8 +90,7 @@ void MandolineUIServicesApp::Initialize(mojo::Shell* shell,
tracing_.Initialize(shell, url);
}
-bool MandolineUIServicesApp::AcceptConnection(
- ApplicationConnection* connection) {
+bool MandolineUIServicesApp::AcceptConnection(Connection* connection) {
connection->AddService<Gpu>(this);
connection->AddService<mojom::DisplayManager>(this);
connection->AddService<mojom::WindowManagerFactoryService>(this);
@@ -130,7 +129,7 @@ MandolineUIServicesApp::CreateClientConnectionForEmbedAtWindow(
}
void MandolineUIServicesApp::Create(
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
mojo::InterfaceRequest<mojom::DisplayManager> request) {
if (!connection_manager_->has_tree_host_connections()) {
scoped_ptr<PendingRequest> pending_request(new PendingRequest);
@@ -143,13 +142,13 @@ void MandolineUIServicesApp::Create(
}
void MandolineUIServicesApp::Create(
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
mojo::InterfaceRequest<mojom::WindowManagerFactoryService> request) {
connection_manager_->CreateWindowManagerFactoryService(std::move(request));
}
void MandolineUIServicesApp::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<mojom::WindowTreeFactory> request) {
if (!connection_manager_->has_tree_host_connections()) {
scoped_ptr<PendingRequest> pending_request(new PendingRequest);
@@ -167,12 +166,12 @@ void MandolineUIServicesApp::Create(
}
void MandolineUIServicesApp::Create(
- ApplicationConnection* connection,
+ Connection* connection,
InterfaceRequest<WindowTreeHostFactory> request) {
factory_bindings_.AddBinding(this, std::move(request));
}
-void MandolineUIServicesApp::Create(mojo::ApplicationConnection* connection,
+void MandolineUIServicesApp::Create(mojo::Connection* connection,
mojo::InterfaceRequest<Gpu> request) {
DCHECK(gpu_state_);
new GpuImpl(std::move(request), gpu_state_);
« no previous file with comments | « components/mus/mus_app.h ('k') | components/mus/public/cpp/tests/window_server_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698