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

Unified Diff: ui/arc/notification/arc_notification_content_view.cc

Issue 2918483002: Add an accessibility description for notification (Closed)
Patch Set: Use a11y description instead of rule Created 3 years, 6 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
« no previous file with comments | « no previous file | ui/message_center/views/message_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_content_view.cc
diff --git a/ui/arc/notification/arc_notification_content_view.cc b/ui/arc/notification/arc_notification_content_view.cc
index 4469fc3485766281701ffddd0f05f389f56cd0ba..2d1be0e795e73f85cb67b1ab92a7fc99a6e1daa7 100644
--- a/ui/arc/notification/arc_notification_content_view.cc
+++ b/ui/arc/notification/arc_notification_content_view.cc
@@ -626,6 +626,10 @@ bool ArcNotificationContentView::HandleAccessibleAction(
void ArcNotificationContentView::GetAccessibleNodeData(
ui::AXNodeData* node_data) {
node_data->role = ui::AX_ROLE_BUTTON;
+ node_data->AddStringAttribute(
+ ui::AX_ATTR_ROLE_DESCRIPTION,
+ l10n_util::GetStringUTF8(
+ IDS_MESSAGE_NOTIFICATION_SETTINGS_BUTTON_ACCESSIBLE_NAME));
node_data->SetName(accessible_name_);
}
« no previous file with comments | « no previous file | ui/message_center/views/message_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698