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

Issue 173254: Mac: Fix zoom (green maximize) button. (Closed)

Created:
11 years, 4 months ago by viettrungluu-gmail
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mac: Fix zoom (green maximize) button. We always maximally zoom vertically, since doing otherwise is too hard. (We'd have to figure out the width and get the renderer to calculate the height -- and somehow do this asynchronously.) BUG=17472 TEST=Zoom/unzoom from a variety of window configurations (size and position), with the Dock in the different possible positions, with web content of differing intrinsic size. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25182

Patch Set 1 #

Total comments: 10

Patch Set 2 : Added some comments. #

Patch Set 3 : Rebased to ToT. #

Patch Set 4 : Explicitly get default frame since the provided one is flaky. #

Patch Set 5 : Revert and rebase. #

Patch Set 6 : Prevent unzooming from changing screens. #

Total comments: 4

Patch Set 7 : Added a test, etc. #

Patch Set 8 : Fixed test, hopefully. #

Patch Set 9 : Added comments about arbitrary constants. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -16 lines) Patch
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 1 chunk +91 lines, -16 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller_unittest.mm View 7 8 1 chunk +84 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
viettrungluu-gmail
Could someone please take a look at this? Thanks.
11 years, 4 months ago (2009-08-22 20:12:52 UTC) #1
Mark Mentovai
http://codereview.chromium.org/173254/diff/1/2 File chrome/browser/cocoa/browser_window_controller.mm (left): http://codereview.chromium.org/173254/diff/1/2#oldcode360 Line 360: // that leaves room for icons on the ...
11 years, 4 months ago (2009-08-23 04:50:06 UTC) #2
viettrungluu-gmail
Thanks for looking, Mark. I (personally) think my patch produces quite good behaviour, and seems ...
11 years, 4 months ago (2009-08-23 05:39:58 UTC) #3
pink (ping after 24hrs)
I'll try to apply this and play with it tomorrow. http://codereview.chromium.org/173254/diff/1/2 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/173254/diff/1/2#newcode362 ...
11 years, 3 months ago (2009-08-28 01:56:38 UTC) #4
viettrungluu-gmail
I studied how Cocoa uses this method more carefully, and wrote a big comment reflecting ...
11 years, 3 months ago (2009-08-28 04:03:39 UTC) #5
pink (ping after 24hrs)
This has a bug where if you move a window onto a 2nd monitor, then ...
11 years, 3 months ago (2009-09-01 15:04:04 UTC) #6
viettrungluu
You're not going to like this, but I'm going to blame Apple. First, concrete repro ...
11 years, 3 months ago (2009-09-02 03:46:41 UTC) #7
viettrungluu
So Patch Set 6 implements |-windowShouldZoom:toFrame:| and should prevent unzooms from making the window jump ...
11 years, 3 months ago (2009-09-02 05:09:11 UTC) #8
pink (ping after 24hrs)
lgtm, seems like it would be nice to break apart some of the checks into ...
11 years, 3 months ago (2009-09-02 15:00:33 UTC) #9
viettrungluu-gmail
Thanks, could you take a look at the shiny new test? (Unfortunately, I don't see ...
11 years, 3 months ago (2009-09-02 16:20:55 UTC) #10
pink (ping after 24hrs)
11 years, 3 months ago (2009-09-02 16:47:10 UTC) #11
lgtm with extra constant comments discussed on irc.

Powered by Google App Engine
This is Rietveld 408576698