| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 | 200 |
| 201 void PlayEarcon(int sound_key) override { | 201 void PlayEarcon(int sound_key) override { |
| 202 DCHECK(chromeos::AccessibilityManager::Get()); | 202 DCHECK(chromeos::AccessibilityManager::Get()); |
| 203 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); | 203 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); |
| 204 } | 204 } |
| 205 | 205 |
| 206 base::TimeDelta PlayShutdownSound() const override { | 206 base::TimeDelta PlayShutdownSound() const override { |
| 207 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); | 207 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); |
| 208 } | 208 } |
| 209 | 209 |
| 210 gfx::Insets GetWorkAreaInsets(aura::Window* root_window) const override { |
| 211 return chromeos::AccessibilityManager::Get()->GetWorkAreaInsets( |
| 212 root_window); |
| 213 } |
| 214 |
| 210 private: | 215 private: |
| 211 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); | 216 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); |
| 212 }; | 217 }; |
| 213 | 218 |
| 214 } // anonymous namespace | 219 } // anonymous namespace |
| 215 | 220 |
| 216 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { | 221 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { |
| 217 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 222 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 218 chromeos::switches::kFirstExecAfterBoot); | 223 chromeos::switches::kFirstExecAfterBoot); |
| 219 } | 224 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 } | 295 } |
| 291 | 296 |
| 292 void ChromeShellDelegate::PlatformInit() { | 297 void ChromeShellDelegate::PlatformInit() { |
| 293 registrar_.Add(this, | 298 registrar_.Add(this, |
| 294 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 299 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 295 content::NotificationService::AllSources()); | 300 content::NotificationService::AllSources()); |
| 296 registrar_.Add(this, | 301 registrar_.Add(this, |
| 297 chrome::NOTIFICATION_SESSION_STARTED, | 302 chrome::NOTIFICATION_SESSION_STARTED, |
| 298 content::NotificationService::AllSources()); | 303 content::NotificationService::AllSources()); |
| 299 } | 304 } |
| OLD | NEW |