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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer.h

Issue 424463002: Makes a window that has been resized to maximized bounds, then maximized and then restored shrink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Maximizes a window that has been resized to maximized bounds (comments and restrict to ash) Created 6 years, 5 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.h
diff --git a/chrome/browser/ui/window_sizer/window_sizer.h b/chrome/browser/ui/window_sizer/window_sizer.h
index e9ec7ea67a05e4b96341a3e9f0d1bf4369784241..bb44195ddafde85683e633884c7a0cbccdea7da3 100644
--- a/chrome/browser/ui/window_sizer/window_sizer.h
+++ b/chrome/browser/ui/window_sizer/window_sizer.h
@@ -166,6 +166,12 @@ class WindowSizer {
bool GetBrowserBoundsAsh(gfx::Rect* bounds,
ui::WindowShowState* show_state) const;
+ // Calls GetBrowserBoundsAsh and then adjusts the |bounds| (to
+ // default bounds) and |show_state| (to SHOW_STATE_MAXIMIZED) if the window
+ // is too big to fit in the display work area.
+ bool GetBrowserBoundsAshAdjusted(gfx::Rect* bounds,
+ ui::WindowShowState* show_state) const;
+
// Determines the position and size for a tabbed browser window in
// ash as it gets created. This will be called before other standard
// placement logic. |show_state| will only be changed

Powered by Google App Engine
This is Rietveld 408576698