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

Issue 337019: Mac: Fix (window modal) sheet placement when bookmark bar is present. (Closed)

Created:
11 years, 2 months ago by viettrungluu
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google), Glen Murphy
Visibility:
Public.

Description

Mac: Fix (window modal) sheet placement when bookmark bar is present. BUG=25754 TEST=Check placement of (window modal) sheets (e.g., Open File...) with various combinations of the following: NTP/non-NTP, bookmark bar active/not active, infobar present/not present, and also download bar present/not present. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=30037

Patch Set 1 #

Patch Set 2 : Place sheets over any infobar (per alcor's comments -- see bug). #

Total comments: 2

Patch Set 3 : Updated comments per jrg's review. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M chrome/browser/cocoa/browser_window_controller.mm View 1 2 1 chunk +17 lines, -3 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
viettrungluu
(This CL hangs sheets below the normal bookmark bar if it's present -- but not ...
11 years, 2 months ago (2009-10-25 07:41:05 UTC) #1
John Grabowski
LGTM Also test fullscreen http://codereview.chromium.org/337019/diff/1001/1002 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/337019/diff/1001/1002#newcode1233 Line 1233: // If the bookmark ...
11 years, 2 months ago (2009-10-26 04:13:37 UTC) #2
viettrungluu
Thanks for the review. Sheet placement in full screen mode remains broken (though no more ...
11 years, 2 months ago (2009-10-26 06:07:55 UTC) #3
Scott Hess - ex-Googler
11 years, 1 month ago (2009-10-26 17:04:07 UTC) #4
LGTM.

[I mean, if jrg is willing to let it slide without a unit test, who am I to
complain?]

http://codereview.chromium.org/337019/diff/4001/5001
File chrome/browser/cocoa/browser_window_controller.mm (right):

http://codereview.chromium.org/337019/diff/4001/5001#newcode1244
Line 1244: defaultSheetRect.origin.y -= bookmarkBarFrame.size.height;
What is wrong with bookmarkBarFrame.origin.y, here?  Would seem more robust.

Otherwise, document your assumption that the views are adjacent:
  DCHECK_EQ(NSMaxY(bookmarkBarFrame), NSMinY(toolbarFrame));

Powered by Google App Engine
This is Rietveld 408576698