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

Unified Diff: ash/common/system/chromeos/network/network_list_md.cc

Issue 2477983003: Improve a11y state for ToggleButton. (Closed)
Patch Set: use switch role, rebase on top of dmazzoni changes Created 4 years, 1 month 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
« no previous file with comments | « no previous file | ui/views/controls/button/toggle_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/network/network_list_md.cc
diff --git a/ash/common/system/chromeos/network/network_list_md.cc b/ash/common/system/chromeos/network/network_list_md.cc
index c5a5bfbb4cdda6c4bfd8d277d733274f08e20412..b52f3739e288f5f3305c579cc8ddcb188b006d8d 100644
--- a/ash/common/system/chromeos/network/network_list_md.cc
+++ b/ash/common/system/chromeos/network/network_list_md.cc
@@ -163,6 +163,8 @@ class NetworkListViewMd::WifiHeaderRowView : public views::View {
container->AddChildView(join_);
toggle_ = new views::ToggleButton(listener_);
+ toggle_->SetAccessibleName(
+ l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ENABLE_WIFI));
// TODO(varkha): Implement focus painter.
toggle_->SetFocusForPlatform();
container->AddChildView(toggle_);
« no previous file with comments | « no previous file | ui/views/controls/button/toggle_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698