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

Side by Side Diff: chrome/browser/ui/window_sizer/window_sizer.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/window_sizer/window_sizer_ash.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ 5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_
6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/host_desktop.h" 10 #include "chrome/browser/ui/host_desktop.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // gets positioned to its default location. 115 // gets positioned to its default location.
116 static const int kDesktopBorderSize; 116 static const int kDesktopBorderSize;
117 117
118 // Maximum width of a window even if there is more room on the desktop. 118 // Maximum width of a window even if there is more room on the desktop.
119 static const int kMaximumWindowWidth; 119 static const int kMaximumWindowWidth;
120 120
121 // How much horizontal and vertical offset there is between newly 121 // How much horizontal and vertical offset there is between newly
122 // opened windows. This value may be different on each platform. 122 // opened windows. This value may be different on each platform.
123 static const int kWindowTilePixels; 123 static const int kWindowTilePixels;
124 124
125 #if defined(USE_ASH)
126 // When the screen resolution width is smaller then this size, The algorithm
127 // will default to maximized.
128 static int GetForceMaximizedWidthLimit();
129 #endif
130
125 private: 131 private:
126 // The edge of the screen to check for out-of-bounds. 132 // The edge of the screen to check for out-of-bounds.
127 enum Edge { TOP, LEFT, BOTTOM, RIGHT }; 133 enum Edge { TOP, LEFT, BOTTOM, RIGHT };
128 134
129 // Gets the size and placement of the last window. Returns true if this data 135 // Gets the size and placement of the last window. Returns true if this data
130 // is valid, false if there is no last window and the application should 136 // is valid, false if there is no last window and the application should
131 // restore saved state from preferences using RestoreWindowPosition. 137 // restore saved state from preferences using RestoreWindowPosition.
132 // |show_state| will only be changed if it was set to SHOW_STATE_DEFAULT. 138 // |show_state| will only be changed if it was set to SHOW_STATE_DEFAULT.
133 bool GetLastWindowBounds(gfx::Rect* bounds, 139 bool GetLastWindowBounds(gfx::Rect* bounds,
134 ui::WindowShowState* show_state) const; 140 ui::WindowShowState* show_state) const;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 scoped_ptr<StateProvider> state_provider_; 187 scoped_ptr<StateProvider> state_provider_;
182 scoped_ptr<MonitorInfoProvider> monitor_info_provider_; 188 scoped_ptr<MonitorInfoProvider> monitor_info_provider_;
183 189
184 // Note that this browser handle might be NULL. 190 // Note that this browser handle might be NULL.
185 const Browser* browser_; 191 const Browser* browser_;
186 192
187 DISALLOW_COPY_AND_ASSIGN(WindowSizer); 193 DISALLOW_COPY_AND_ASSIGN(WindowSizer);
188 }; 194 };
189 195
190 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ 196 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/window_sizer/window_sizer_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698