Commit 6517b488 authored by Ahmed Mehfooz's avatar Ahmed Mehfooz Committed by Commit Bot

Change message view accessiblity node role

Changing the node role to kGenericContainer so that accessiblity
focus moves through all child elements.

Bug: 1009705
Change-Id: I7193521707d747fcc5e7a4b1b1c45da6b569a64a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1947191Reviewed-by: default avatarDavid Tseng <dtseng@chromium.org>
Reviewed-by: default avatarJustin DeWitt <dewittj@chromium.org>
Reviewed-by: default avatarEvan Stade <estade@chromium.org>
Commit-Queue: Ahmed Mehfooz <amehfooz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721155}
parent 9db27f1e
...@@ -209,7 +209,7 @@ void MessageView::OnContainerAnimationEnded() { ...@@ -209,7 +209,7 @@ void MessageView::OnContainerAnimationEnded() {
} }
void MessageView::GetAccessibleNodeData(ui::AXNodeData* node_data) { void MessageView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ax::mojom::Role::kButton; node_data->role = ax::mojom::Role::kGenericContainer;
node_data->AddStringAttribute( node_data->AddStringAttribute(
ax::mojom::StringAttribute::kRoleDescription, ax::mojom::StringAttribute::kRoleDescription,
l10n_util::GetStringUTF8(IDS_MESSAGE_NOTIFICATION_ACCESSIBLE_NAME)); l10n_util::GetStringUTF8(IDS_MESSAGE_NOTIFICATION_ACCESSIBLE_NAME));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment