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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer_ash.cc

Issue 12285011: Reducing the maximize limit to a tine screen size - which will turn this off until we have the full (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reducing the maximize limit to a tine screen size - which will turn this off until we have the full… Created 7 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
Index: chrome/browser/ui/window_sizer/window_sizer_ash.cc
diff --git a/chrome/browser/ui/window_sizer/window_sizer_ash.cc b/chrome/browser/ui/window_sizer/window_sizer_ash.cc
index 3da8368fac05086e7bd3537afb0857db9b4873c9..bd834d8afd598868a3bfc85928e909b1d15a7426 100644
--- a/chrome/browser/ui/window_sizer/window_sizer_ash.cc
+++ b/chrome/browser/ui/window_sizer/window_sizer_ash.cc
@@ -23,7 +23,7 @@ namespace {
// When a window gets opened in default mode and the screen is less then this
// width, the window will get opened in maximized mode.
-const int kForceMaximizeWidthLimit = 1450;
+const int kForceMaximizeWidthLimit = 640;
// Check if the given browser is 'valid': It is a tabbed, non minimized
// window, which intersects with the |bounds_in_screen| area of a given screen.
@@ -133,6 +133,11 @@ bool MoveRect(const gfx::Rect& work_area,
} // namespace
+// static
+int WindowSizer::GetForceMaximizedWidthLimit() {
+ return kForceMaximizeWidthLimit;
+}
+
bool WindowSizer::GetBoundsOverrideAsh(gfx::Rect* bounds_in_screen,
ui::WindowShowState* show_state) const {
DCHECK(show_state);
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer.h ('k') | chrome/browser/ui/window_sizer/window_sizer_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698