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

Unified Diff: mash/wm/root_window_controller.cc

Issue 1725353003: Eliminate mojo::Shell client lib class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@15connector
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 | « mash/wm/root_window_controller.h ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/root_window_controller.cc
diff --git a/mash/wm/root_window_controller.cc b/mash/wm/root_window_controller.cc
index d46cd78ce41525cf8581d48ef2195ebcb71f0f99..03de79ecfd85b2bf64efb866a4db3a2a5a35d746 100644
--- a/mash/wm/root_window_controller.cc
+++ b/mash/wm/root_window_controller.cc
@@ -21,7 +21,7 @@
#include "mash/wm/window_layout.h"
#include "mash/wm/window_manager.h"
#include "mash/wm/window_manager_application.h"
-#include "mojo/shell/public/cpp/shell.h"
+#include "mojo/shell/public/cpp/connector.h"
namespace mash {
namespace wm {
@@ -39,7 +39,7 @@ void AssertTrue(bool success) {
RootWindowController* RootWindowController::CreateUsingWindowTreeHost(
WindowManagerApplication* app) {
RootWindowController* controller = new RootWindowController(app);
- mus::CreateWindowTreeHost(app->shell(), controller,
+ mus::CreateWindowTreeHost(app->connector(), controller,
&controller->window_tree_host_,
controller->window_manager_.get());
return controller;
@@ -69,8 +69,8 @@ void RootWindowController::Destroy() {
}
}
-mojo::Shell* RootWindowController::GetShell() {
- return app_->shell();
+mojo::Connector* RootWindowController::GetConnector() {
+ return app_->connector();
}
mus::Window* RootWindowController::GetWindowForContainer(
@@ -145,7 +145,7 @@ void RootWindowController::OnEmbed(mus::Window* root) {
AddAccelerators();
mash::shell::mojom::ShellPtr shell;
- app_->shell()->ConnectToInterface("mojo:mash_shell", &shell);
+ app_->connector()->ConnectToInterface("mojo:mash_shell", &shell);
window_manager_->Initialize(this, std::move(shell));
shadow_controller_.reset(new ShadowController(root->connection()));
« no previous file with comments | « mash/wm/root_window_controller.h ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698