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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_action_button.mm

Issue 1327203003: Mac: Fix missing focus rings on toolbar, profile, and tab buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 3 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
Index: chrome/browser/ui/cocoa/extensions/browser_action_button.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_action_button.mm b/chrome/browser/ui/cocoa/extensions/browser_action_button.mm
index dfaf575ea5a4946e33f69f0e00d6bd4c113460ef..893584615417c1adc618b4100274167d0d3dc2a5 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_action_button.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_action_button.mm
@@ -549,6 +549,13 @@ void ToolbarActionViewDelegateBridge::DoShowContextMenu() {
hints:nil];
}
+- (void)drawFocusRingMaskWithFrame:(NSRect)cellFrame inView:(NSView*)view {
+ // Match the hover image's bezel.
+ [[NSBezierPath bezierPathWithRoundedRect:NSInsetRect(cellFrame, 2, 2)
+ xRadius:2
+ yRadius:2] fill];
+}
+
- (ui::ThemeProvider*)themeProviderForWindow:(NSWindow*)window {
ui::ThemeProvider* themeProvider = [window themeProvider];
if (!themeProvider)
« no previous file with comments | « chrome/browser/ui/cocoa/autofill/down_arrow_popup_menu_cell.mm ('k') | chrome/browser/ui/cocoa/gradient_button_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698