Commit 3b98abec authored by Xiaodan Zhu's avatar Xiaodan Zhu Committed by Commit Bot

ChomeVox announces the desk name when the desk name is changed.

Bug: 1116234
Change-Id: Ie21f6e0ea2fdb4098bcd1fa2f2632207ccd185ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2378536
Commit-Queue: Xiaodan Zhu <zxdan@chromium.org>
Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802792}
parent 9d302ba8
...@@ -1102,6 +1102,9 @@ This file contains the strings for ash. ...@@ -1102,6 +1102,9 @@ This file contains the strings for ash.
<message name="IDS_ASH_DESKS_DESK_ACCESSIBLE_NAME" desc="The full accessible desk name"> <message name="IDS_ASH_DESKS_DESK_ACCESSIBLE_NAME" desc="The full accessible desk name">
Desk: <ph name="DESK_NAME">$1</ph> Desk: <ph name="DESK_NAME">$1</ph>
</message> </message>
<message name="IDS_ASH_DESKS_DESK_NAME_COMMIT" desc="Alert when the desk name is committed">
Desk name was changed to <ph name="DESK_NAME">$1</ph>
</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.">
......
d5678d91d086183beec468a0f40093e81ecd3235
\ No newline at end of file
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
#include <algorithm> #include <algorithm>
#include "ash/accessibility/accessibility_controller_impl.h"
#include "ash/shell.h"
#include "ash/strings/grit/ash_strings.h" #include "ash/strings/grit/ash_strings.h"
#include "ash/style/ash_color_provider.h" #include "ash/style/ash_color_provider.h"
#include "ash/wm/desks/close_desk_button.h" #include "ash/wm/desks/close_desk_button.h"
...@@ -322,6 +324,11 @@ bool DeskMiniView::HandleKeyEvent(views::Textfield* sender, ...@@ -322,6 +324,11 @@ bool DeskMiniView::HandleKeyEvent(views::Textfield* sender,
} }
DeskNameView::CommitChanges(GetWidget()); DeskNameView::CommitChanges(GetWidget());
Shell::Get()
->accessibility_controller()
->TriggerAccessibilityAlertWithMessage(l10n_util::GetStringFUTF8(
IDS_ASH_DESKS_DESK_NAME_COMMIT, desk_->name()));
return true; return true;
} }
......
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