Commit 3b1c2570 authored by Amr Aboelkher's avatar Amr Aboelkher Committed by Commit Bot

Add ChromeVox support for managed accessibility features

Add ChromeVox support to indicate for each accessibility feature,
whether its forced on, and is being controlled by a policy,
in the tray accessibility menu.

Bug: 552439
Change-Id: Ia6066725deeaa4587192c6b309de7dfdfc4b10fe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863020Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Amr Aboelkher <amraboelkher@google.com>
Cr-Commit-Position: refs/heads/master@{#706507}
parent 0daf58ee
......@@ -442,6 +442,10 @@ This file contains the strings for ash.
desc="The label used in the notification used to indicate that, the accessibility feature is being set as forced disabled.">
deactivated
</message>
<message name="IDS_ASH_ACCESSIBILITY_FEATURE_MANAGED"
desc="The label used to indicate that, the accessiblity feature is being managed by a policy.">
<ph name="FEATURE_NAME">$1<ex>Full-screen magnifier</ex></ph> This setting is enforced by your administrator.
</message>
<message name="IDS_ASH_STATUS_TRAY_IME_SHORT" desc="The short label used for IME button in system tray bubble.">
Keyboard
......
......@@ -337,6 +337,10 @@ HoverHighlightView* TrayDetailedView::AddScrollListCheckableItem(
bool checked,
bool enterprise_managed) {
HoverHighlightView* item = AddScrollListItem(icon, text);
if (enterprise_managed) {
item->SetAccessibleName(l10n_util::GetStringFUTF16(
IDS_ASH_ACCESSIBILITY_FEATURE_MANAGED, text));
}
TrayPopupUtils::InitializeAsCheckableRow(item, checked, enterprise_managed);
return item;
}
......
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