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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h

Issue 2847903003: cocoa: don't draw focus rings over the URL scheme in the location bar (Closed)
Patch Set: Created 3 years, 8 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
index f0df6785dcefc09b511c94cbc03aaa8112065370..beaae57e1c326106c35f91478cc3519c149b830e 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h
@@ -153,6 +153,11 @@ class LocationBarDecoration {
// different from its frame in the Cocoa sense).
void UpdateAccessibilityView(NSRect apparent_frame);
+ // Computes the real bounds the focus ring should be drawn around for this
+ // decoration. Some decorations include visual spacing or separators in their
+ // bounds, but these should not be encompassed by the focus ring.
+ virtual NSRect GetRealFocusRingBounds(NSRect bounds) const;
+
DecorationMouseState state() const { return state_; }
bool active() const { return active_; }
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/location_bar/location_bar_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698