| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 void PlayEarcon(int sound_key) override { | 264 void PlayEarcon(int sound_key) override { |
| 265 DCHECK(chromeos::AccessibilityManager::Get()); | 265 DCHECK(chromeos::AccessibilityManager::Get()); |
| 266 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); | 266 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); |
| 267 } | 267 } |
| 268 | 268 |
| 269 base::TimeDelta PlayShutdownSound() const override { | 269 base::TimeDelta PlayShutdownSound() const override { |
| 270 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); | 270 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); |
| 271 } | 271 } |
| 272 | 272 |
| 273 void HandleAccessibilityGesture(ui::AXGesture gesture) override { |
| 274 chromeos::AccessibilityManager::Get()->HandleAccessibilityGesture(gesture); |
| 275 } |
| 276 |
| 273 private: | 277 private: |
| 274 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); | 278 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); |
| 275 }; | 279 }; |
| 276 | 280 |
| 277 } // anonymous namespace | 281 } // anonymous namespace |
| 278 | 282 |
| 279 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { | 283 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { |
| 280 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 284 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 281 chromeos::switches::kFirstExecAfterBoot); | 285 chromeos::switches::kFirstExecAfterBoot); |
| 282 } | 286 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 360 } |
| 357 | 361 |
| 358 void ChromeShellDelegate::PlatformInit() { | 362 void ChromeShellDelegate::PlatformInit() { |
| 359 registrar_.Add(this, | 363 registrar_.Add(this, |
| 360 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 364 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 361 content::NotificationService::AllSources()); | 365 content::NotificationService::AllSources()); |
| 362 registrar_.Add(this, | 366 registrar_.Add(this, |
| 363 chrome::NOTIFICATION_SESSION_STARTED, | 367 chrome::NOTIFICATION_SESSION_STARTED, |
| 364 content::NotificationService::AllSources()); | 368 content::NotificationService::AllSources()); |
| 365 } | 369 } |
| OLD | NEW |