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

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

Issue 6126001: With the Mac App Store, we see that window controls are no longer tied to the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.h ('k') | chrome/browser/ui/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/framed_browser_window.mm
===================================================================
--- chrome/browser/ui/cocoa/framed_browser_window.mm (revision 70617)
+++ chrome/browser/ui/cocoa/framed_browser_window.mm (working copy)
@@ -118,13 +118,15 @@
closeButton_ = [NSWindow standardWindowButton:NSWindowCloseButton
forStyleMask:aStyle];
NSRect closeButtonFrame = [closeButton_ frame];
+ CGFloat xOffset = [browserController hasTabStrip] ?
+ kFramedWindowButtonsWithTabStripOffsetFromLeft :
+ kFramedWindowButtonsWithoutTabStripOffsetFromLeft;
CGFloat yOffset = [browserController hasTabStrip] ?
kFramedWindowButtonsWithTabStripOffsetFromTop :
kFramedWindowButtonsWithoutTabStripOffsetFromTop;
closeButtonFrame.origin =
- NSMakePoint(kFramedWindowButtonsOffsetFromLeft,
- (NSHeight(frameViewBounds) -
- NSHeight(closeButtonFrame) - yOffset));
+ NSMakePoint(xOffset, (NSHeight(frameViewBounds) -
+ NSHeight(closeButtonFrame) - yOffset));
[closeButton_ setFrame:closeButtonFrame];
[closeButton_ setTarget:self];
« no previous file with comments | « chrome/browser/ui/cocoa/framed_browser_window.h ('k') | chrome/browser/ui/cocoa/tab_strip_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698