summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 15:51:53 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 15:51:53 +0000
commitf2bc9095bf9a49083c71bb8870cd7ff7865d7736 (patch)
treefb38851615e85ec2160942f7cc864d54ef4e505d /views
parent2844d7c8103016882503e32c41c9b40b63ea375d (diff)
downloadchromium_src-f2bc9095bf9a49083c71bb8870cd7ff7865d7736.zip
chromium_src-f2bc9095bf9a49083c71bb8870cd7ff7865d7736.tar.gz
chromium_src-f2bc9095bf9a49083c71bb8870cd7ff7865d7736.tar.bz2
Make NativeButton on touchui focusable. This allows accessibility events to be triggered on focus.
BUG=none TEST=AccessibilityEventRouterViewsTest.TestFocusNotification Review URL: http://codereview.chromium.org/7029026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/button/native_button.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/views/controls/button/native_button.cc b/views/controls/button/native_button.cc
index d791082..0e2c1f5 100644
--- a/views/controls/button/native_button.cc
+++ b/views/controls/button/native_button.cc
@@ -248,6 +248,7 @@ NativeButton::NativeButton(ButtonListener* listener, const std::wstring& label)
: TextButton(listener, label), is_default_(false) {
set_alignment(TextButton::ALIGN_CENTER);
SetNormalHasBorder(true);
+ SetFocusable(true);
}
void NativeButton::SetLabel(const std::wstring& label) {