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

Unified Diff: chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm

Issue 2542173002: [Mac] Omnibox icons active states (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
index 2d29915dfa517d385eb023209b41670067d79d69..9023fa56e19d727de9188a90d645104284b1f709 100644
--- a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
@@ -312,6 +312,7 @@ bool ContentSettingDecoration::OnMousePressed(NSRect frame, NSPoint location) {
[ContentSettingBubbleController showForModel:model
webContents:web_contents
parentWindow:[field window]
+ decoration:this
anchoredAt:anchor];
}
@@ -386,7 +387,7 @@ void ContentSettingDecoration::DrawInFrame(NSRect frame, NSView* control_view) {
DrawAttributedString(animated_text_, remainder);
// Draw the divider if available.
- if (state() == LocationBarDecorationState::NORMAL) {
+ if (state() == DecorationMouseState::NONE && !active()) {
NSBezierPath* line = [NSBezierPath bezierPath];
[line setLineWidth:1];
[line moveToPoint:NSMakePoint(NSMaxX(background_rect) - kDividerPadding,

Powered by Google App Engine
This is Rietveld 408576698