summaryrefslogtreecommitdiffstats
path: root/ash
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 03:13:46 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-08 03:13:46 +0000
commite336d8fa300a8cc7e4b7c71c6a3c05679c89e44c (patch)
treee0f2bf404fb453fe60a2107a0d5da141a7d7be9c /ash
parent7a4ebc34eb759d26d3fda93457a8e45c8e4d09ce (diff)
downloadchromium_src-e336d8fa300a8cc7e4b7c71c6a3c05679c89e44c.zip
chromium_src-e336d8fa300a8cc7e4b7c71c6a3c05679c89e44c.tar.gz
chromium_src-e336d8fa300a8cc7e4b7c71c6a3c05679c89e44c.tar.bz2
Revert 120887 - Fix --aura-window-mode=compact on dev linux_chromeos builds
I'm suspicious this may have caused win_aura views_unittest failures. BUG=none TEST=manual Review URL: https://chromiumcodereview.appspot.com/9363009 TBR=jamescook@chromium.org Review URL: https://chromiumcodereview.appspot.com/9360010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120931 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r--ash/shell.cc15
1 files changed, 5 insertions, 10 deletions
diff --git a/ash/shell.cc b/ash/shell.cc
index 0e2c11e..945c671 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -70,6 +70,11 @@ const int kCompactWindowModeWidthThreshold = 1366;
// Returns suggested window mode for a given monitor size.
Shell::WindowMode SuggestedWindowMode(const gfx::Size& monitor_size) {
+ // Developers often run the Aura shell in small windows on their desktop.
+ // Prefer overlapping mode for them.
+ if (!aura::RootWindow::use_fullscreen_host_window())
+ return Shell::MODE_OVERLAPPING;
+
// If the screen is narrow we prefer a single compact window display.
// We explicitly don't care about height, since users don't generally stack
// browser windows vertically.
@@ -373,11 +378,6 @@ Shell::WindowMode Shell::ComputeWindowMode(const gfx::Size& monitor_size,
return MODE_OVERLAPPING;
}
- // Developers often run the Aura shell in small windows on their desktop.
- // Prefer overlapping mode for them.
- if (!aura::RootWindow::use_fullscreen_host_window())
- return Shell::MODE_OVERLAPPING;
-
// Without an explicit command line flag, guess based on the monitor size.
return SuggestedWindowMode(monitor_size);
}
@@ -435,11 +435,6 @@ void Shell::SetWindowModeForMonitorSize(const gfx::Size& monitor_size) {
if (command_line->HasSwitch(switches::kAuraForceCompactWindowMode))
return;
- // Developers often run the Aura shell in small windows on their desktop.
- // Don't change modes if they resize the host window.
- if (!aura::RootWindow::use_fullscreen_host_window())
- return;
-
// If we're running on a device, a resolution change means the user plugged in
// or unplugged an external monitor. Change window mode to be appropriate for
// the new screen resolution.