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

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

Issue 1690543004: MacViews: Implement Full Keyboard Access. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix FocusManagerTest.StoreFocusedView Created 4 years, 10 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/md_text_button.cc
diff --git a/ui/views/controls/button/md_text_button.cc b/ui/views/controls/button/md_text_button.cc
index 4cae74f7dfa70816e1470a22365226db2da0a053..9f7d76076dd6ca07a20e16c29d733092574d41a2 100644
--- a/ui/views/controls/button/md_text_button.cc
+++ b/ui/views/controls/button/md_text_button.cc
@@ -7,6 +7,7 @@
#include "base/i18n/case_conversion.h"
#include "ui/gfx/render_text.h"
#include "ui/native_theme/native_theme.h"
+#include "ui/views/style/platform_style.h"
namespace views {
@@ -34,7 +35,7 @@ MdTextButton::MdTextButton(ButtonListener* listener, const base::string16& text)
render_text_->SetCursorEnabled(false);
render_text_->SetText(base::i18n::ToUpper(text));
- SetFocusable(true);
+ PlatformStyle::SetControlStyleFocus(this);
}
MdTextButton::~MdTextButton() {}

Powered by Google App Engine
This is Rietveld 408576698