| 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 void SetFocusHighlightEnabled(bool enabled) override { | 214 void SetFocusHighlightEnabled(bool enabled) override { |
| 215 DCHECK(AccessibilityManager::Get()); | 215 DCHECK(AccessibilityManager::Get()); |
| 216 AccessibilityManager::Get()->SetFocusHighlightEnabled(enabled); | 216 AccessibilityManager::Get()->SetFocusHighlightEnabled(enabled); |
| 217 } | 217 } |
| 218 | 218 |
| 219 bool IsFocusHighlightEnabled() const override { | 219 bool IsFocusHighlightEnabled() const override { |
| 220 DCHECK(AccessibilityManager::Get()); | 220 DCHECK(AccessibilityManager::Get()); |
| 221 return AccessibilityManager::Get()->IsFocusHighlightEnabled(); | 221 return AccessibilityManager::Get()->IsFocusHighlightEnabled(); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void SetStickyKeysEnabled(bool enabled) override { |
| 225 DCHECK(AccessibilityManager::Get()); |
| 226 return AccessibilityManager::Get()->EnableStickyKeys(enabled); |
| 227 } |
| 228 |
| 229 bool IsStickyKeysEnabled() const override { |
| 230 DCHECK(AccessibilityManager::Get()); |
| 231 return AccessibilityManager::Get()->IsStickyKeysEnabled(); |
| 232 } |
| 233 |
| 234 void SetTapDraggingEnabled(bool enabled) override { |
| 235 DCHECK(AccessibilityManager::Get()); |
| 236 return AccessibilityManager::Get()->EnableTapDragging(enabled); |
| 237 } |
| 238 |
| 239 bool IsTapDraggingEnabled() const override { |
| 240 DCHECK(AccessibilityManager::Get()); |
| 241 return AccessibilityManager::Get()->IsTapDraggingEnabled(); |
| 242 } |
| 243 |
| 224 void SetSelectToSpeakEnabled(bool enabled) override { | 244 void SetSelectToSpeakEnabled(bool enabled) override { |
| 225 DCHECK(AccessibilityManager::Get()); | 245 DCHECK(AccessibilityManager::Get()); |
| 226 AccessibilityManager::Get()->SetSelectToSpeakEnabled(enabled); | 246 AccessibilityManager::Get()->SetSelectToSpeakEnabled(enabled); |
| 227 } | 247 } |
| 228 | 248 |
| 229 bool IsSelectToSpeakEnabled() const override { | 249 bool IsSelectToSpeakEnabled() const override { |
| 230 DCHECK(AccessibilityManager::Get()); | 250 DCHECK(AccessibilityManager::Get()); |
| 231 return AccessibilityManager::Get()->IsSelectToSpeakEnabled(); | 251 return AccessibilityManager::Get()->IsSelectToSpeakEnabled(); |
| 232 } | 252 } |
| 233 | 253 |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 NOTREACHED() << "Unexpected notification " << type; | 623 NOTREACHED() << "Unexpected notification " << type; |
| 604 } | 624 } |
| 605 } | 625 } |
| 606 | 626 |
| 607 void ChromeShellDelegate::PlatformInit() { | 627 void ChromeShellDelegate::PlatformInit() { |
| 608 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 628 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 609 content::NotificationService::AllSources()); | 629 content::NotificationService::AllSources()); |
| 610 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, | 630 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, |
| 611 content::NotificationService::AllSources()); | 631 content::NotificationService::AllSources()); |
| 612 } | 632 } |
| OLD | NEW |