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

Unified Diff: ash/shell.cc

Issue 9513004: Switch default WM mode to managed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 10 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/shell.h ('k') | ash/shell_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 52e25d14a06f2d138b3b1f50d1f7c75d485599d5..c97852e8317950502cc4ac7f6e54bf9d860e1fa8 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -279,7 +279,7 @@ Shell::Shell(ShellDelegate* delegate)
audio_controller_(NULL),
brightness_controller_(NULL),
shelf_(NULL),
- window_mode_(MODE_OVERLAPPING),
+ window_mode_(MODE_MANAGED),
desktop_background_mode_(BACKGROUND_IMAGE),
root_window_layout_(NULL),
status_widget_(NULL) {
@@ -485,8 +485,8 @@ Shell::WindowMode Shell::ComputeWindowMode(CommandLine* command_line) const {
return MODE_OVERLAPPING;
}
- // Overlapping is the default.
- return Shell::MODE_OVERLAPPING;
+ // Managed is the default.
+ return Shell::MODE_MANAGED;
}
aura::Window* Shell::GetContainer(int container_id) {
@@ -661,4 +661,9 @@ void Shell::ResetLayoutManager(int container_id) {
GetContainer(container_id)->SetLayoutManager(NULL);
}
+void Shell::DisableWorkspaceGridLayout() {
+ if (workspace_controller_.get())
+ workspace_controller_->workspace_manager()->set_grid_size(0);
+}
+
} // namespace ash
« no previous file with comments | « ash/shell.h ('k') | ash/shell_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698