Commit 17f0ceca authored by Abigail Klein's avatar Abigail Klein Committed by Chromium LUCI CQ

[Mac A11y] Give the tab strip an accessible name.

This ensures that the tab strip name is announced when it is focused by
the accessible pane manager.

Bug: 1097760
Change-Id: Ieba4986c83ae750feb3c4b0690a3d0bc6eca39d7
AX-Relnotes: Tab strip is named "Tab strip".
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2588892
Commit-Queue: Abigail Klein <abigailbklein@google.com>
Reviewed-by: default avatarElly Fong-Jones <ellyjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#836720}
parent 8fb89e17
......@@ -5896,6 +5896,9 @@ the Bookmarks menu.">
<message name="IDS_ACCNAME_TAB_SEARCH" desc="The accessible name for the Tab Search bubble.">
Search tabs
</message>
<message name="IDS_ACCNAME_TAB_STRIP" desc="The accessible name for the tab strip.">
Tab strip
</message>
<!-- Clipboard permission -->
<message name="IDS_ALLOWED_CLIPBOARD_TITLE" desc="Title of the info bubble shown when a site has been allowed access to read the contents of the system clipboard.">
......
ff5f5bf5bcaf277a191b7f9ecd25a0053209d92b
\ No newline at end of file
......@@ -235,6 +235,7 @@ views::View* TabStripRegionView::GetDefaultFocusableChild() {
void TabStripRegionView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->role = ax::mojom::Role::kTabList;
node_data->SetName(l10n_util::GetStringUTF16(IDS_ACCNAME_TAB_STRIP));
}
void TabStripRegionView::OnViewPreferredSizeChanged(View* view) {
......
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