Commit ac3b2a8a authored by chinsenj's avatar chinsenj Committed by Commit Bot

cros: Add indication for inactive virtual desks.

When a user highlights an active desk in overview mode, ChromeVox
announces "Desk 1 (Active Desk) ...". However, when a user highlights
an inactive desk, ChromeVox announces "Desk 2 ...".

To make it more clear that the inactive desk is inactive, this CL adds
an indication that the desk is inactive. I.e. ChromeVox now announces
"Desk 2 (Inactive Desk) ...".

Test: manual
Bug: 1111988
Change-Id: I7e47ecd923fbfd2d7f8fe86531a03c87419cf23d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2364558Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Jeremy Chinsen <chinsenj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800660}
parent 9fd38cdd
...@@ -1096,6 +1096,9 @@ This file contains the strings for ash. ...@@ -1096,6 +1096,9 @@ This file contains the strings for ash.
<message name="IDS_ASH_DESKS_ACTIVE_DESK_MINIVIEW_A11Y_EXTRA_TIP" desc="The accessibility tooltip read by screen readers for a highlighted active desk mini_view."> <message name="IDS_ASH_DESKS_ACTIVE_DESK_MINIVIEW_A11Y_EXTRA_TIP" desc="The accessibility tooltip read by screen readers for a highlighted active desk mini_view.">
Active desk. Active desk.
</message> </message>
<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>
<!-- Status tray charging strings. --> <!-- 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."> <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.">
......
c0011f1a7d59d0e49a62cc6be9fe822a6a1cd403
\ No newline at end of file
...@@ -200,12 +200,12 @@ void DeskMiniView::GetAccessibleNodeData(ui::AXNodeData* node_data) { ...@@ -200,12 +200,12 @@ void DeskMiniView::GetAccessibleNodeData(ui::AXNodeData* node_data) {
node_data->AddStringAttribute(ax::mojom::StringAttribute::kName, node_data->AddStringAttribute(ax::mojom::StringAttribute::kName,
base::UTF16ToUTF8(desk_->name())); base::UTF16ToUTF8(desk_->name()));
if (desk_->is_active()) { node_data->AddStringAttribute(
node_data->AddStringAttribute( ax::mojom::StringAttribute::kValue,
ax::mojom::StringAttribute::kValue, l10n_util::GetStringUTF8(
l10n_util::GetStringUTF8( desk_->is_active()
IDS_ASH_DESKS_ACTIVE_DESK_MINIVIEW_A11Y_EXTRA_TIP)); ? IDS_ASH_DESKS_ACTIVE_DESK_MINIVIEW_A11Y_EXTRA_TIP
} : IDS_ASH_DESKS_INACTIVE_DESK_MINIVIEW_A11Y_EXTRA_TIP));
} }
if (DesksController::Get()->CanRemoveDesks()) { if (DesksController::Get()->CanRemoveDesks()) {
......
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