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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc

Issue 257763008: Added a11y alert on entering overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed small typographic issue Created 6 years, 7 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/accelerators/magnifier_key_scroller.h" 7 #include "ash/accelerators/magnifier_key_scroller.h"
8 #include "ash/accelerators/spoken_feedback_toggler.h" 8 #include "ash/accelerators/spoken_feedback_toggler.h"
9 #include "ash/accessibility_delegate.h" 9 #include "ash/accessibility_delegate.h"
10 #include "ash/media_delegate.h" 10 #include "ash/media_delegate.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 Profile* profile = ProfileManager::GetActiveUserProfile(); 176 Profile* profile = ProfileManager::GetActiveUserProfile();
177 if (profile) { 177 if (profile) {
178 switch (alert) { 178 switch (alert) {
179 case ash::A11Y_ALERT_WINDOW_NEEDED: { 179 case ash::A11Y_ALERT_WINDOW_NEEDED: {
180 AccessibilityAlertInfo event( 180 AccessibilityAlertInfo event(
181 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED)); 181 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
182 SendControlAccessibilityNotification( 182 SendControlAccessibilityNotification(
183 ui::AX_EVENT_ALERT, &event); 183 ui::AX_EVENT_ALERT, &event);
184 break; 184 break;
185 } 185 }
186 case ash::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: {
187 AccessibilityAlertInfo event(
188 profile, l10n_util::GetStringUTF8(
189 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
190 SendControlAccessibilityNotification(
191 ui::AX_EVENT_ALERT, &event);
192 break;
193 }
186 case ash::A11Y_ALERT_NONE: 194 case ash::A11Y_ALERT_NONE:
187 break; 195 break;
188 } 196 }
189 } 197 }
190 } 198 }
191 199
192 virtual ash::AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE { 200 virtual ash::AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE {
193 return ash::A11Y_ALERT_NONE; 201 return ash::A11Y_ALERT_NONE;
194 } 202 }
195 203
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } 304 }
297 305
298 void ChromeShellDelegate::PlatformInit() { 306 void ChromeShellDelegate::PlatformInit() {
299 registrar_.Add(this, 307 registrar_.Add(this,
300 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 308 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
301 content::NotificationService::AllSources()); 309 content::NotificationService::AllSources());
302 registrar_.Add(this, 310 registrar_.Add(this,
303 chrome::NOTIFICATION_SESSION_STARTED, 311 chrome::NOTIFICATION_SESSION_STARTED,
304 content::NotificationService::AllSources()); 312 content::NotificationService::AllSources());
305 } 313 }
OLDNEW
« chrome/app/generated_resources.grd ('K') | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698