Commit 1af71f76 authored by oshima@chromium.org's avatar oshima@chromium.org

Use WorkspaceLayoutManager for AlwaysOnTop and Lock containers

BUG=338906
TEST=Tested on the device and confirmed that login/lock screens are fine.

Review URL: https://codereview.chromium.org/148173014

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247733 0039d316-1c4b-4281-b951-d872f2087c98
parent 39d290c3
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
#include "ash/wm/window_properties.h" #include "ash/wm/window_properties.h"
#include "ash/wm/window_state.h" #include "ash/wm/window_state.h"
#include "ash/wm/window_util.h" #include "ash/wm/window_util.h"
#include "ash/wm/workspace/workspace_layout_manager.h"
#include "ash/wm/workspace_controller.h" #include "ash/wm/workspace_controller.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/time/time.h" #include "base/time/time.h"
...@@ -707,8 +708,8 @@ void RootWindowController::InitLayoutManagers() { ...@@ -707,8 +708,8 @@ void RootWindowController::InitLayoutManagers() {
aura::Window* always_on_top_container = aura::Window* always_on_top_container =
GetContainer(kShellWindowId_AlwaysOnTopContainer); GetContainer(kShellWindowId_AlwaysOnTopContainer);
always_on_top_container->SetLayoutManager( always_on_top_container->SetLayoutManager(
new BaseLayoutManager( new internal::WorkspaceLayoutManager(
always_on_top_container->GetRootWindow())); always_on_top_container));
always_on_top_controller_.reset(new internal::AlwaysOnTopController); always_on_top_controller_.reset(new internal::AlwaysOnTopController);
always_on_top_controller_->SetAlwaysOnTopContainer(always_on_top_container); always_on_top_controller_->SetAlwaysOnTopContainer(always_on_top_container);
...@@ -902,7 +903,7 @@ void RootWindowController::CreateContainersInRootWindow( ...@@ -902,7 +903,7 @@ void RootWindowController::CreateContainersInRootWindow(
"LockScreenContainer", "LockScreenContainer",
lock_screen_containers); lock_screen_containers);
lock_container->SetLayoutManager( lock_container->SetLayoutManager(
new BaseLayoutManager(root_window)); new internal::WorkspaceLayoutManager(lock_container));
SetUsesScreenCoordinates(lock_container); SetUsesScreenCoordinates(lock_container);
// TODO(beng): stopsevents // TODO(beng): stopsevents
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment