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

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

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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
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 49f741fac6dac8f5f13549e028f5511cb0420183..19dbb5be31f81fa5e6857476107d2cca0e19928c 100644
--- a/ui/views/controls/button/label_button.cc
+++ b/ui/views/controls/button/label_button.cc
@@ -218,7 +218,7 @@ void LabelButton::SetStyle(ButtonStyle style) {
SetFocusPainter(nullptr);
SetHorizontalAlignment(gfx::ALIGN_CENTER);
- SetFocusable(true);
+ SetFocusBehavior(FocusBehavior::ALWAYS);
SetMinSize(gfx::Size(PlatformStyle::kMinLabelButtonWidth,
PlatformStyle::kMinLabelButtonHeight));

Powered by Google App Engine
This is Rietveld 408576698