From f9a1e1ac377bf195535b8a18a105e953b3c856ba Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Tue, 30 Jun 2009 20:57:24 +0000 Subject: Remove hack for zoom button now that it's no longer needed BUG=12498 TEST=zoom button should always be enabled. Review URL: http://codereview.chromium.org/150134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19652 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/browser_window_controller.mm | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/cocoa/browser_window_controller.mm b/chrome/browser/cocoa/browser_window_controller.mm index 3532141..7e1d9aa 100644 --- a/chrome/browser/cocoa/browser_window_controller.mm +++ b/chrome/browser/cocoa/browser_window_controller.mm @@ -118,16 +118,6 @@ willPositionSheet:(NSWindow *)sheet if ([window_ respondsToSelector:@selector(setBottomCornerRounded:)]) [window_ setBottomCornerRounded:NO]; - // Since we don't have a standard resize control, Cocoa won't enable the - // zoom (green) button on the titlebar for us. Grab it and enable it - // manually. Note that when launched from XCode, the doesn't work for the - // first window (and only the first window). There's some activation - // wonkiness there, since XCode stays active and the menus don't switch - // either. It always works when launched from the Finder. - NSButton* zoomButton = - [[self window] standardWindowButton:NSWindowZoomButton]; - [zoomButton setEnabled:YES]; - // Register ourselves for frame changed notifications from the // tabContentArea. [[NSNotificationCenter defaultCenter] -- cgit v1.1