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

Unified Diff: components/mus/mus_app.h

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/html_viewer/stats_collection_controller.cc ('k') | components/mus/mus_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/mus_app.h
diff --git a/components/mus/mus_app.h b/components/mus/mus_app.h
index 920e6688b2194dafa82cf2f26b2b9776dc8b6951..61f96321ba49de49f95ba47a49f21b424b4bf6c8 100644
--- a/components/mus/mus_app.h
+++ b/components/mus/mus_app.h
@@ -19,9 +19,8 @@
#include "components/mus/ws/connection_manager_delegate.h"
#include "mojo/common/weak_binding_set.h"
#include "mojo/services/tracing/public/cpp/tracing_impl.h"
-#include "mojo/shell/public/cpp/app_lifetime_helper.h"
-#include "mojo/shell/public/cpp/application_delegate.h"
#include "mojo/shell/public/cpp/interface_factory.h"
+#include "mojo/shell/public/cpp/shell_client.h"
namespace mojo {
class Shell;
@@ -43,7 +42,7 @@ class WindowTreeFactory;
}
class MandolineUIServicesApp
- : public mojo::ApplicationDelegate,
+ : public mojo::ShellClient,
public ws::ConnectionManagerDelegate,
public mojo::InterfaceFactory<mojom::DisplayManager>,
public mojo::InterfaceFactory<mojom::WindowManagerFactoryService>,
@@ -60,11 +59,10 @@ class MandolineUIServicesApp
// has been established.
struct PendingRequest;
- // ApplicationDelegate:
+ // mojo::ShellClient:
void Initialize(mojo::Shell* shell, const std::string& url,
uint32_t id) override;
- bool AcceptConnection(
- mojo::ApplicationConnection* connection) override;
+ bool AcceptConnection(mojo::Connection* connection) override;
// ConnectionManagerDelegate:
void OnFirstRootConnectionCreated() override;
@@ -77,26 +75,26 @@ class MandolineUIServicesApp
mojom::WindowTreeClientPtr client) override;
// mojo::InterfaceFactory<mojom::DisplayManager> implementation.
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<mojom::DisplayManager> request) override;
// mojo::InterfaceFactory<mojom::WindowManagerFactoryService> implementation.
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<mojom::WindowManagerFactoryService>
request) override;
// mojo::InterfaceFactory<mojom::WindowTreeFactory>:
void Create(
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
mojo::InterfaceRequest<mojom::WindowTreeFactory> request) override;
// mojo::InterfaceFactory<mojom::WindowTreeHostFactory>:
void Create(
- mojo::ApplicationConnection* connection,
+ mojo::Connection* connection,
mojo::InterfaceRequest<mojom::WindowTreeHostFactory> request) override;
// mojo::InterfaceFactory<mojom::Gpu> implementation.
- void Create(mojo::ApplicationConnection* connection,
+ void Create(mojo::Connection* connection,
mojo::InterfaceRequest<mojom::Gpu> request) override;
// mojom::WindowTreeHostFactory implementation.
« no previous file with comments | « components/html_viewer/stats_collection_controller.cc ('k') | components/mus/mus_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698