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

Unified Diff: ui/views/controls/button/label_button.cc

Issue 2374803002: Remove a bunch of pre-MD toolbar code and assets. (Closed)
Patch Set: fix mac? Created 4 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: ui/views/controls/button/label_button.cc
diff --git a/ui/views/controls/button/label_button.cc b/ui/views/controls/button/label_button.cc
index 68a347286166806eacd855ee7b0db6dac6a7733d..e98010771c69a20de3789c23768aa333bbf66529 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -92,7 +92,6 @@ namespace views {
// static
const int LabelButton::kHoverAnimationDurationMs = 170;
-const int LabelButton::kFocusRectInset = 3;
const char LabelButton::kViewClassName[] = "LabelButton";
LabelButton::LabelButton(ButtonListener* listener, const base::string16& text)
@@ -127,8 +126,7 @@ LabelButton::LabelButton(ButtonListener* listener, const base::string16& text)
label_->SetHorizontalAlignment(gfx::ALIGN_TO_HEAD);
// Inset the button focus rect from the actual border; roughly match Windows.
- SetFocusPainter(Painter::CreateDashedFocusPainterWithInsets(gfx::Insets(
- kFocusRectInset, kFocusRectInset, kFocusRectInset, kFocusRectInset)));
+ SetFocusPainter(Painter::CreateDashedFocusPainterWithInsets(gfx::Insets(3)));
}
LabelButton::~LabelButton() {}

Powered by Google App Engine
This is Rietveld 408576698