| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 DCHECK(chromeos::AccessibilityManager::Get()); | 140 DCHECK(chromeos::AccessibilityManager::Get()); |
| 141 return chromeos::AccessibilityManager::Get()-> | 141 return chromeos::AccessibilityManager::Get()-> |
| 142 EnableVirtualKeyboard(enabled); | 142 EnableVirtualKeyboard(enabled); |
| 143 } | 143 } |
| 144 | 144 |
| 145 bool IsVirtualKeyboardEnabled() const override { | 145 bool IsVirtualKeyboardEnabled() const override { |
| 146 DCHECK(chromeos::AccessibilityManager::Get()); | 146 DCHECK(chromeos::AccessibilityManager::Get()); |
| 147 return chromeos::AccessibilityManager::Get()->IsVirtualKeyboardEnabled(); | 147 return chromeos::AccessibilityManager::Get()->IsVirtualKeyboardEnabled(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 void SetMonoAudioEnabled(bool enabled) override { |
| 151 DCHECK(chromeos::AccessibilityManager::Get()); |
| 152 return chromeos::AccessibilityManager::Get()-> |
| 153 EnableMonoAudio(enabled); |
| 154 } |
| 155 |
| 156 bool IsMonoAudioEnabled() const override { |
| 157 DCHECK(chromeos::AccessibilityManager::Get()); |
| 158 return chromeos::AccessibilityManager::Get()->IsMonoAudioEnabled(); |
| 159 } |
| 160 |
| 150 void SetCaretHighlightEnabled(bool enabled) override { | 161 void SetCaretHighlightEnabled(bool enabled) override { |
| 151 DCHECK(chromeos::AccessibilityManager::Get()); | 162 DCHECK(chromeos::AccessibilityManager::Get()); |
| 152 chromeos::AccessibilityManager::Get()->SetCaretHighlightEnabled(enabled); | 163 chromeos::AccessibilityManager::Get()->SetCaretHighlightEnabled(enabled); |
| 153 } | 164 } |
| 154 | 165 |
| 155 bool IsCaretHighlightEnabled() const override { | 166 bool IsCaretHighlightEnabled() const override { |
| 156 DCHECK(chromeos::AccessibilityManager::Get()); | 167 DCHECK(chromeos::AccessibilityManager::Get()); |
| 157 return chromeos::AccessibilityManager::Get()->IsCaretHighlightEnabled(); | 168 return chromeos::AccessibilityManager::Get()->IsCaretHighlightEnabled(); |
| 158 } | 169 } |
| 159 | 170 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 } | 356 } |
| 346 | 357 |
| 347 void ChromeShellDelegate::PlatformInit() { | 358 void ChromeShellDelegate::PlatformInit() { |
| 348 registrar_.Add(this, | 359 registrar_.Add(this, |
| 349 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 360 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 350 content::NotificationService::AllSources()); | 361 content::NotificationService::AllSources()); |
| 351 registrar_.Add(this, | 362 registrar_.Add(this, |
| 352 chrome::NOTIFICATION_SESSION_STARTED, | 363 chrome::NOTIFICATION_SESSION_STARTED, |
| 353 content::NotificationService::AllSources()); | 364 content::NotificationService::AllSources()); |
| 354 } | 365 } |
| OLD | NEW |