| OLD | NEW |
| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 case ash::A11Y_ALERT_NONE: | 296 case ash::A11Y_ALERT_NONE: |
| 297 break; | 297 break; |
| 298 } | 298 } |
| 299 } | 299 } |
| 300 } | 300 } |
| 301 | 301 |
| 302 ash::AccessibilityAlert GetLastAccessibilityAlert() override { | 302 ash::AccessibilityAlert GetLastAccessibilityAlert() override { |
| 303 return ash::A11Y_ALERT_NONE; | 303 return ash::A11Y_ALERT_NONE; |
| 304 } | 304 } |
| 305 | 305 |
| 306 void PlaySpokenFeedbackToggleCountdown(int tick_count) override { |
| 307 DCHECK(AccessibilityManager::Get()); |
| 308 AccessibilityManager::Get()->PlaySpokenFeedbackToggleCountdown(tick_count); |
| 309 } |
| 310 |
| 306 void PlayEarcon(int sound_key) override { | 311 void PlayEarcon(int sound_key) override { |
| 307 DCHECK(AccessibilityManager::Get()); | 312 DCHECK(AccessibilityManager::Get()); |
| 308 AccessibilityManager::Get()->PlayEarcon( | 313 AccessibilityManager::Get()->PlayEarcon( |
| 309 sound_key, chromeos::PlaySoundOption::SPOKEN_FEEDBACK_ENABLED); | 314 sound_key, chromeos::PlaySoundOption::SPOKEN_FEEDBACK_ENABLED); |
| 310 } | 315 } |
| 311 | 316 |
| 312 base::TimeDelta PlayShutdownSound() const override { | 317 base::TimeDelta PlayShutdownSound() const override { |
| 313 return AccessibilityManager::Get()->PlayShutdownSound(); | 318 return AccessibilityManager::Get()->PlayShutdownSound(); |
| 314 } | 319 } |
| 315 | 320 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 NOTREACHED() << "Unexpected notification " << type; | 552 NOTREACHED() << "Unexpected notification " << type; |
| 548 } | 553 } |
| 549 } | 554 } |
| 550 | 555 |
| 551 void ChromeShellDelegate::PlatformInit() { | 556 void ChromeShellDelegate::PlatformInit() { |
| 552 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 557 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 553 content::NotificationService::AllSources()); | 558 content::NotificationService::AllSources()); |
| 554 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, | 559 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, |
| 555 content::NotificationService::AllSources()); | 560 content::NotificationService::AllSources()); |
| 556 } | 561 } |
| OLD | NEW |