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 |