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

Issue 3054040: [Mac] Adjust browser-action and content-setting popup points (Closed)

Created:
10 years, 4 months ago by Scott Hess - ex-Googler
Modified:
9 years, 6 months ago
Reviewers:
Bons
CC:
chromium-reviews, John Grabowski, Erik does not do reviews, ben+cc_chromium.org, pam+watch_chromium.org, Aaron Boodman
Base URL:
git://codf21.jail/chromium.git
Visibility:
Public.

Description

[Mac] Adjust browser-action and content-setting popup points Adjust the browser-action popup point to leave the top border of the window 2px below the bottom border of the Omnibox. This matches the Omnibox popup, the bookmark popup, and page-action popups. Likewise content-setting popup. BUG=50575 TEST=The popup is spaced correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54839

Patch Set 1 #

Patch Set 2 : Merge to LKGR. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -17 lines) Patch
M chrome/browser/cocoa/extensions/browser_actions_controller.mm View 2 chunks +14 lines, -14 lines 3 comments Download
M chrome/browser/cocoa/location_bar/content_setting_decoration.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/location_bar/content_setting_decoration.mm View 3 chunks +18 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Scott Hess - ex-Googler
Didn't want to pollute the previous review with the popup positioning. Also threw in content-setting ...
10 years, 4 months ago (2010-08-03 19:46:39 UTC) #1
Bons
http://codereview.chromium.org/3054040/diff/3001/4001 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/3054040/diff/3001/4001#newcode391 chrome/browser/cocoa/extensions/browser_actions_controller.mm:391: DCHECK([button isFlipped]); isFlipped is deprecated on 10.6 so we ...
10 years, 4 months ago (2010-08-03 21:11:48 UTC) #2
Bons
LGTM Sorry forgot to say this. :)
10 years, 4 months ago (2010-08-03 21:12:01 UTC) #3
Scott Hess - ex-Googler
http://codereview.chromium.org/3054040/diff/3001/4001 File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right): http://codereview.chromium.org/3054040/diff/3001/4001#newcode391 chrome/browser/cocoa/extensions/browser_actions_controller.mm:391: DCHECK([button isFlipped]); On 2010/08/03 21:11:49, Andrew Bonventre (Bons) wrote: ...
10 years, 4 months ago (2010-08-03 21:22:50 UTC) #4
Bons
10 years, 4 months ago (2010-08-03 21:40:36 UTC) #5
LGTM

http://codereview.chromium.org/3054040/diff/3001/4001
File chrome/browser/cocoa/extensions/browser_actions_controller.mm (right):

http://codereview.chromium.org/3054040/diff/3001/4001#newcode391
chrome/browser/cocoa/extensions/browser_actions_controller.mm:391:
DCHECK([button isFlipped]);
On 2010/08/03 21:22:50, shess wrote:
> On 2010/08/03 21:11:49, Andrew Bonventre (Bons) wrote:
> > isFlipped is deprecated on 10.6 so we don't use it. Is there a reason you
need
> > to DCHECK this?
> 
> The -isFlipped of the button affects whether the code below needs NSMaxY() or
> NSMinY().  I had initially written it to be neutral WRT flipped
> (-convertRect:toView: will unflip the rect as necessary, so convert the rect
> before finding the point), but that looked cumbersome, too.  I can pull it
back
> if you'd like.
> 
> -[NSImage isFlipped] is deprecated, not -[NSView isFlipped].
Ah you're right. No worries. As needed.
>

Powered by Google App Engine
This is Rietveld 408576698