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

Unified Diff: ash/root_window_controller.cc

Issue 2032613002: Converts RootWindowLayoutManager to common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/root_window_controller.h ('k') | ash/root_window_controller_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 846dc9268a229ef4a6a305a0bb0d96f5a268f1e2..f9281efba006f9b16e5ed6e721c925d17a0feb5f 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -655,7 +655,6 @@ bool RootWindowController::IsVirtualKeyboardWindow(aura::Window* window) {
RootWindowController::RootWindowController(AshWindowTreeHost* ash_host)
: ash_host_(ash_host),
- root_window_layout_(NULL),
docked_layout_manager_(NULL),
panel_layout_manager_(NULL),
touch_hud_debug_(NULL),
@@ -690,11 +689,10 @@ void RootWindowController::Init(RootWindowType root_window_type,
shell->AddShellObserver(this);
+ root_window_controller_common_->root_window_layout()->OnWindowResized();
if (root_window_type == PRIMARY) {
- root_window_layout()->OnWindowResized();
shell->InitKeyboard();
} else {
- root_window_layout()->OnWindowResized();
ash_host_->AsWindowTreeHost()->Show();
// Create a shelf if a user is already logged in.
@@ -714,9 +712,9 @@ void RootWindowController::Init(RootWindowType root_window_type,
}
void RootWindowController::InitLayoutManagers() {
+ root_window_controller_common_->CreateLayoutManagers();
+
aura::Window* root_window = GetRootWindow();
- root_window_layout_ = new RootWindowLayoutManager(root_window);
- root_window->SetLayoutManager(root_window_layout_);
aura::Window* default_container =
GetContainer(kShellWindowId_DefaultContainer);
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/root_window_controller_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698