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

Unified Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm

Issue 7390012: [Mac] Remove the Lion fullscreen button until proper fullscreen support is added. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/cocoa/tabs/tab_strip_controller.mm
diff --git a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
index 6ad6d414e3ecc837d23545ed04039e4d2b74e59a..06927ea4b3fc3625349f90c0eb27956391ece81e 100644
--- a/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
+++ b/chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm
@@ -844,20 +844,13 @@ private:
BrowserWindowController* controller =
(BrowserWindowController*)[[tabStripView_ window] windowController];
- // Account for the widths of the new tab button, the avatar, and the
- // fullscreen button if any/all are present.
+ // Account for the widths of the new tab button or the avatar, if any/all
+ // are present.
availableSpace -= NSWidth([newTabButton_ frame]) + kNewTabButtonOffset;
if ([controller respondsToSelector:@selector(shouldShowAvatar)] &&
[controller shouldShowAvatar]) {
availableSpace -= kAvatarTabStripShrink;
}
- if ([[tabStripView_ window]
- respondsToSelector:@selector(toggleFullScreen:)]) {
- NSButton* fullscreenButton = [[tabStripView_ window]
- standardWindowButton:NSWindowFullScreenButton];
- if (fullscreenButton)
- availableSpace -= [fullscreenButton frame].size.width;
- }
}
availableSpace -= [self indentForControls];
}

Powered by Google App Engine
This is Rietveld 408576698