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

Unified Diff: ash/root_window_controller.cc

Issue 148173014: Use WorkspaceLayoutManager for AlwaysOnTop and Lock containers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | no next file » | 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 b52204c8a7535d6f58bb44e4db998fafb8bb87ee..d295caedbb2ffc8648e5a665b5a7410d40f38f09 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -43,6 +43,7 @@
#include "ash/wm/window_properties.h"
#include "ash/wm/window_state.h"
#include "ash/wm/window_util.h"
+#include "ash/wm/workspace/workspace_layout_manager.h"
#include "ash/wm/workspace_controller.h"
#include "base/command_line.h"
#include "base/time/time.h"
@@ -707,8 +708,8 @@ void RootWindowController::InitLayoutManagers() {
aura::Window* always_on_top_container =
GetContainer(kShellWindowId_AlwaysOnTopContainer);
always_on_top_container->SetLayoutManager(
- new BaseLayoutManager(
- always_on_top_container->GetRootWindow()));
+ new internal::WorkspaceLayoutManager(
+ always_on_top_container));
always_on_top_controller_.reset(new internal::AlwaysOnTopController);
always_on_top_controller_->SetAlwaysOnTopContainer(always_on_top_container);
@@ -902,7 +903,7 @@ void RootWindowController::CreateContainersInRootWindow(
"LockScreenContainer",
lock_screen_containers);
lock_container->SetLayoutManager(
- new BaseLayoutManager(root_window));
+ new internal::WorkspaceLayoutManager(lock_container));
SetUsesScreenCoordinates(lock_container);
// TODO(beng): stopsevents
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698