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

Issue 2847903003: cocoa: don't draw focus rings over the URL scheme in the location bar (Closed)

Created:
3 years, 7 months ago by Elly Fong-Jones
Modified:
3 years, 7 months ago
Reviewers:
spqchan
CC:
chromium-reviews, mac-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cocoa: don't draw focus rings over the URL scheme in the location bar The security state decoration looks like this: Secure | The divider is included in the bounds, and then the location bar text is placed just after this decoration; because of that, the focus ring on the security state decoration (which is exterior to the decoration, like Cocoa focus rings usually are) draws over the top of the start of the location bar text. This change: 1) Introduces LocationBarDecoration::GetRealFocusRingBounds() to allow each decoration to control its focus ring bounds if it needs to 2) Overrides that method in SecurityStateBubbleDecoration to inset the focus ring on the right side BUG=715909 Review-Url: https://codereview.chromium.org/2847903003 Cr-Commit-Position: refs/heads/master@{#468096} Committed: https://chromium.googlesource.com/chromium/src/+/7d0f29cf86073f026098badc2dfe6ee7a7520b65

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/security_state_bubble_decoration.mm View 3 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (5 generated)
Elly Fong-Jones
spqchan: ptal? :)
3 years, 7 months ago (2017-04-28 18:28:59 UTC) #3
spqchan
lgtm
3 years, 7 months ago (2017-04-28 19:12:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2847903003/1
3 years, 7 months ago (2017-04-28 19:16:32 UTC) #6
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 19:39:54 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/7d0f29cf86073f026098badc2dfe...

Powered by Google App Engine
This is Rietveld 408576698