Commit 46df3b8f authored by Xiaodan Zhu's avatar Xiaodan Zhu Committed by Commit Bot

Announce desk name as "Desk: <Desk Name>"

Bug: 1116229
Change-Id: I583ea76360fcaab0d5a9ec55adf80ff6432a0b9b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2368824Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Xiaodan Zhu <zxdan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800829}
parent 4e118e53
......@@ -1099,6 +1099,9 @@ This file contains the strings for ash.
<message name="IDS_ASH_DESKS_INACTIVE_DESK_MINIVIEW_A11Y_EXTRA_TIP" desc="The accessibility tooltip read by screen readers for a highlighted inactive desk mini_view.">
Inactive desk.
</message>
<message name="IDS_ASH_DESKS_DESK_ACCESSIBLE_NAME" desc="The full accessible desk name">
Desk: <ph name="DESK_NAME">$1</ph>
</message>
<!-- Status tray charging strings. -->
<message name="IDS_ASH_STATUS_TRAY_LOW_POWER_CHARGER_TITLE" desc="The title of a notification indicating that a low-current USB charger has been connected.">
......
05991126a35bba34a97f6025c348afaee4f9e074
\ No newline at end of file
......@@ -197,8 +197,10 @@ void DeskMiniView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
// Note that the desk may have already been destroyed.
if (desk_) {
// Announce desk name.
node_data->AddStringAttribute(ax::mojom::StringAttribute::kName,
base::UTF16ToUTF8(desk_->name()));
node_data->AddStringAttribute(
ax::mojom::StringAttribute::kName,
l10n_util::GetStringFUTF8(IDS_ASH_DESKS_DESK_ACCESSIBLE_NAME,
desk_->name()));
node_data->AddStringAttribute(
ax::mojom::StringAttribute::kValue,
......
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