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

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

Issue 2507733004: Send screen on and off state as a11y alert (Closed)
Patch Set: alert when SetBacklightsForcedOff 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 unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 Profile* profile = ProfileManager::GetActiveUserProfile(); 283 Profile* profile = ProfileManager::GetActiveUserProfile();
284 if (profile) { 284 if (profile) {
285 int msg = 0; 285 int msg = 0;
286 switch (alert) { 286 switch (alert) {
287 case ash::A11Y_ALERT_CAPS_ON: 287 case ash::A11Y_ALERT_CAPS_ON:
288 msg = IDS_A11Y_ALERT_CAPS_ON; 288 msg = IDS_A11Y_ALERT_CAPS_ON;
289 break; 289 break;
290 case ash::A11Y_ALERT_CAPS_OFF: 290 case ash::A11Y_ALERT_CAPS_OFF:
291 msg = IDS_A11Y_ALERT_CAPS_OFF; 291 msg = IDS_A11Y_ALERT_CAPS_OFF;
292 break; 292 break;
293 case ash::A11Y_ALERT_SCREEN_ON:
294 msg = IDS_A11Y_ALERT_SCREEN_ON;
295 break;
296 case ash::A11Y_ALERT_SCREEN_OFF:
297 msg = IDS_A11Y_ALERT_SCREEN_OFF;
298 break;
293 case ash::A11Y_ALERT_WINDOW_NEEDED: 299 case ash::A11Y_ALERT_WINDOW_NEEDED:
294 msg = IDS_A11Y_ALERT_WINDOW_NEEDED; 300 msg = IDS_A11Y_ALERT_WINDOW_NEEDED;
295 break; 301 break;
296 case ash::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: 302 case ash::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED:
297 msg = IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED; 303 msg = IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED;
298 break; 304 break;
299 case ash::A11Y_ALERT_NONE: 305 case ash::A11Y_ALERT_NONE:
300 msg = 0; 306 msg = 0;
301 break; 307 break;
302 } 308 }
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 NOTREACHED() << "Unexpected notification " << type; 574 NOTREACHED() << "Unexpected notification " << type;
569 } 575 }
570 } 576 }
571 577
572 void ChromeShellDelegate::PlatformInit() { 578 void ChromeShellDelegate::PlatformInit() {
573 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 579 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
574 content::NotificationService::AllSources()); 580 content::NotificationService::AllSources());
575 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, 581 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED,
576 content::NotificationService::AllSources()); 582 content::NotificationService::AllSources());
577 } 583 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698