| OLD | NEW |
| 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/wm/mru_window_tracker.h" | 10 #include "ash/wm/mru_window_tracker.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 case ash::A11Y_ALERT_NONE: | 192 case ash::A11Y_ALERT_NONE: |
| 193 break; | 193 break; |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 virtual ash::AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE { | 198 virtual ash::AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE { |
| 199 return ash::A11Y_ALERT_NONE; | 199 return ash::A11Y_ALERT_NONE; |
| 200 } | 200 } |
| 201 | 201 |
| 202 virtual void PlayEarcon(int sound_key) OVERRIDE { |
| 203 DCHECK(chromeos::AccessibilityManager::Get()); |
| 204 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); |
| 205 } |
| 206 |
| 202 virtual base::TimeDelta PlayShutdownSound() const OVERRIDE { | 207 virtual base::TimeDelta PlayShutdownSound() const OVERRIDE { |
| 203 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); | 208 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); |
| 204 } | 209 } |
| 205 | 210 |
| 206 private: | 211 private: |
| 207 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); | 212 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); |
| 208 }; | 213 }; |
| 209 | 214 |
| 210 } // anonymous namespace | 215 } // anonymous namespace |
| 211 | 216 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 } | 280 } |
| 276 | 281 |
| 277 void ChromeShellDelegate::PlatformInit() { | 282 void ChromeShellDelegate::PlatformInit() { |
| 278 registrar_.Add(this, | 283 registrar_.Add(this, |
| 279 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 284 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 280 content::NotificationService::AllSources()); | 285 content::NotificationService::AllSources()); |
| 281 registrar_.Add(this, | 286 registrar_.Add(this, |
| 282 chrome::NOTIFICATION_SESSION_STARTED, | 287 chrome::NOTIFICATION_SESSION_STARTED, |
| 283 content::NotificationService::AllSources()); | 288 content::NotificationService::AllSources()); |
| 284 } | 289 } |
| OLD | NEW |