Index: views/controls/button/text_button.cc |
=================================================================== |
--- views/controls/button/text_button.cc (revision 107928) |
+++ views/controls/button/text_button.cc (working copy) |
@@ -744,6 +744,14 @@ |
return kViewClassName; |
} |
+void TextButton::OnPaintFocusBorder(gfx::Canvas* canvas) { |
+ if ((IsFocusable() || IsAccessibilityFocusableInRootView()) && HasFocus()) { |
+ gfx::Rect rect(GetLocalBounds()); |
+ rect.Inset(3, 3); |
Peter Kasting
2011/11/01 21:46:04
Please, no context-free magic numbers.
dmazzoni
2011/11/01 21:49:07
Updated to use a constant instead.
|
+ canvas->DrawFocusRect(rect); |
+ } |
+} |
+ |
gfx::NativeTheme::Part TextButton::GetThemePart() const { |
return gfx::NativeTheme::kPushButton; |
} |