Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7328)

Unified Diff: chrome/browser/ui/ash/chrome_shell_delegate.cc

Issue 2488373002: Expose caps lock state as an accessible alert (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/chrome_shell_delegate.cc
diff --git a/chrome/browser/ui/ash/chrome_shell_delegate.cc b/chrome/browser/ui/ash/chrome_shell_delegate.cc
index 96f7ad8c785dcd671193f528481026100f707216..de5b79266593a220b2d7efcda21afac850ffaad8 100644
--- a/chrome/browser/ui/ash/chrome_shell_delegate.cc
+++ b/chrome/browser/ui/ash/chrome_shell_delegate.cc
@@ -282,20 +282,30 @@ class AccessibilityDelegateImpl : public ash::AccessibilityDelegate {
Profile* profile = ProfileManager::GetActiveUserProfile();
if (profile) {
switch (alert) {
- case ash::A11Y_ALERT_WINDOW_NEEDED: {
+ case ash::A11Y_ALERT_CAPS_ON: {
dmazzoni 2016/11/10 22:15:18 How about refactoring this as a concise switch tha
oshima 2016/11/10 22:41:40 +1
David Tseng 2016/11/10 23:46:04 Done.
AutomationManagerAura::GetInstance()->HandleAlert(
- profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
- break;
- }
- case ash::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: {
- AutomationManagerAura::GetInstance()->HandleAlert(
- profile, l10n_util::GetStringUTF8(
- IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
- break;
- }
- case ash::A11Y_ALERT_NONE:
+ profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_CAPS_ON));
break;
}
+ case ash::A11Y_ALERT_CAPS_OFF: {
+ AutomationManagerAura::GetInstance()->HandleAlert(
+ profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_CAPS_OFF));
+ break;
+ }
+ case ash::A11Y_ALERT_WINDOW_NEEDED: {
+ AutomationManagerAura::GetInstance()->HandleAlert(
+ profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
+ break;
+ }
+ case ash::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: {
+ AutomationManagerAura::GetInstance()->HandleAlert(
+ profile, l10n_util::GetStringUTF8(
+ IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
+ break;
+ }
+ case ash::A11Y_ALERT_NONE:
+ break;
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698