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

Unified Diff: mash/wm/root_window_controller.cc

Issue 1674903003: Extract shell methods from ApplicationImpl into a base class, and pass this to Initialize() instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojom
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 ea8cf3b3beb0fc65f8daf83660d0bee46a44422b..ab91b759ead8da3756cd4b8e18f822d7e534cb1e 100644
--- a/mash/wm/root_window_controller.cc
+++ b/mash/wm/root_window_controller.cc
@@ -20,7 +20,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/application_impl.h"
+#include "mojo/shell/public/cpp/shell.h"
namespace mash {
namespace wm {
@@ -38,7 +38,7 @@ void AssertTrue(bool success) {
RootWindowController* RootWindowController::CreateUsingWindowTreeHost(
WindowManagerApplication* app) {
RootWindowController* controller = new RootWindowController(app);
- mus::CreateWindowTreeHost(app->app(), controller,
+ mus::CreateWindowTreeHost(app->shell(), controller,
&controller->window_tree_host_,
controller->window_manager_.get());
return controller;
@@ -68,8 +68,8 @@ void RootWindowController::Destroy() {
}
}
-mojo::shell::mojom::Shell* RootWindowController::GetShell() {
- return app_->app()->shell();
+mojo::Shell* RootWindowController::GetShell() {
+ return app_->shell();
}
mus::Window* RootWindowController::GetWindowForContainer(
@@ -141,7 +141,7 @@ void RootWindowController::OnEmbed(mus::Window* root) {
AddAccelerators();
mash::shell::mojom::ShellPtr shell;
- app_->app()->ConnectToService("mojo:mash_shell", &shell);
+ app_->shell()->ConnectToService("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