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

Unified Diff: ash/root_window_controller.cc

Issue 2896273004: chromeos: converts PanelLayoutManager to aura::Window (Closed)
Patch Set: feedback Created 3 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 | « no previous file | ash/wm/always_on_top_controller.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 b47c55bd22ee9b33f335c38213f920e2f2966c31..5596b4760e8c0ee09ccd24d0060cf38756adcd75 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -799,16 +799,16 @@ void RootWindowController::InitLayoutManagers() {
DCHECK(lock_container);
lock_container->SetLayoutManager(new LockLayoutManager(lock_container));
- WmWindow* always_on_top_container =
- GetWmContainer(kShellWindowId_AlwaysOnTopContainer);
+ aura::Window* always_on_top_container =
+ GetContainer(kShellWindowId_AlwaysOnTopContainer);
DCHECK(always_on_top_container);
always_on_top_controller_ =
base::MakeUnique<AlwaysOnTopController>(always_on_top_container);
// Create Panel layout manager
- WmWindow* wm_panel_container = GetWmContainer(kShellWindowId_PanelContainer);
- panel_layout_manager_ = new PanelLayoutManager(wm_panel_container);
- wm_panel_container->aura_window()->SetLayoutManager(panel_layout_manager_);
+ aura::Window* panel_container = GetContainer(kShellWindowId_PanelContainer);
+ panel_layout_manager_ = new PanelLayoutManager(panel_container);
+ panel_container->SetLayoutManager(panel_layout_manager_);
wm::WmSnapToPixelLayoutManager::InstallOnContainers(root);
@@ -834,7 +834,6 @@ void RootWindowController::InitLayoutManagers() {
-kResizeOutsideBoundsSize);
gfx::Insets touch_extend =
mouse_extend.Scale(kResizeOutsideBoundsScaleForTouch);
- aura::Window* panel_container = GetContainer(kShellWindowId_PanelContainer);
panel_container->SetEventTargeter(std::unique_ptr<ui::EventTargeter>(
new AttachedPanelWindowTargeter(panel_container, mouse_extend,
touch_extend, panel_layout_manager())));
« no previous file with comments | « no previous file | ash/wm/always_on_top_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698