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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 11072002: Combined window positioning and show state determiniation in the WindowSizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More include issues Created 8 years, 2 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/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 89be4970e816cc2fc14fe608c2740805a1f28207..2f20edd79a00adbf40c68544e81b0de85f874c30 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -268,8 +268,11 @@ enum {
// Note that this may leave a significant portion of the window
// offscreen, but there will always be enough window onscreen to
// drag the whole window back into view.
- gfx::Rect desiredContentRect =
- chrome::GetSavedWindowBounds(browser_.get());
+ ui::WindowShowState show_state;
sky 2012/10/08 21:01:25 same comment and initializing. Also, I have a feli
Mr4D (OOO till 08-26) 2012/10/08 23:04:27 Done
+ gfx::Rect desiredContentRect;
+ chrome::GetSavedWindowBoundsAndShowState(browser_.get(),
+ &desiredContentRect,
+ &show_state);
gfx::Rect windowRect = desiredContentRect;
windowRect = [self enforceMinWindowSize:windowRect];

Powered by Google App Engine
This is Rietveld 408576698