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

Unified Diff: ash/mus/root_window_controller.cc

Issue 2297893002: Merges RootWindowControllerCommon into WmRootWindowController (Closed)
Patch Set: feedback Created 4 years, 4 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 | « ash/mus/root_window_controller.h ('k') | ash/mus/test/wm_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_window_controller.cc
diff --git a/ash/mus/root_window_controller.cc b/ash/mus/root_window_controller.cc
index df4141fa8777d509a0b07875241353e3ad4c323e..46ceb10a0b9cc54d1e93b887010c34d172145376 100644
--- a/ash/mus/root_window_controller.cc
+++ b/ash/mus/root_window_controller.cc
@@ -13,7 +13,6 @@
#include <utility>
#include <vector>
-#include "ash/common/root_window_controller_common.h"
#include "ash/common/shelf/shelf_layout_manager.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/always_on_top_controller.h"
@@ -55,21 +54,19 @@ RootWindowController::RootWindowController(WindowManager* window_manager,
: window_manager_(window_manager),
root_(root),
window_count_(0),
- display_(display) {
- wm_root_window_controller_.reset(
- new WmRootWindowControllerMus(window_manager_->shell(), this));
-
- root_window_controller_common_.reset(
- new RootWindowControllerCommon(WmWindowMus::Get(root_)));
- root_window_controller_common_->CreateContainers();
- root_window_controller_common_->CreateLayoutManagers();
+ display_(display),
+ wm_root_window_controller_(
+ base::MakeUnique<WmRootWindowControllerMus>(window_manager_->shell(),
+ this)) {
+ wm_root_window_controller_->CreateContainers();
+ wm_root_window_controller_->CreateLayoutManagers();
CreateLayoutManagers();
disconnected_app_handler_.reset(new DisconnectedAppHandler(root));
// Force a layout of the root, and its children, RootWindowLayout handles
// both.
- root_window_controller_common_->root_window_layout()->OnWindowResized();
+ wm_root_window_controller_->root_window_layout_manager()->OnWindowResized();
for (size_t i = 0; i < kNumActivatableShellWindowIds; ++i) {
window_manager_->window_manager_client()->AddActivationParent(
@@ -83,7 +80,7 @@ RootWindowController::RootWindowController(WindowManager* window_manager,
}
RootWindowController::~RootWindowController() {
- root_window_controller_common_->DeleteWorkspaceController();
+ wm_root_window_controller_->DeleteWorkspaceController();
}
shell::Connector* RootWindowController::GetConnector() {
« no previous file with comments | « ash/mus/root_window_controller.h ('k') | ash/mus/test/wm_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698