OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/chromeos/accessibility/accessibility_manager.h" | 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 ash::Shell::GetInstance()->SetCursorCompositingEnabled( | 477 ash::Shell::GetInstance()->SetCursorCompositingEnabled( |
478 ShouldEnableCursorCompositing()); | 478 ShouldEnableCursorCompositing()); |
479 #endif | 479 #endif |
480 | 480 |
481 #endif // !USE_ATHENA | 481 #endif // !USE_ATHENA |
482 } | 482 } |
483 | 483 |
484 bool AccessibilityManager::IsIncognitoAllowed() { | 484 bool AccessibilityManager::IsIncognitoAllowed() { |
485 // Supervised users can't create incognito-mode windows. | 485 // Supervised users can't create incognito-mode windows. |
486 return !user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser() && | 486 return !user_manager::UserManager::Get()->IsLoggedInAsSupervisedUser() && |
487 !user_manager::UserManager::Get()-> | 487 !user_manager::UserManager::Get()->IsLoggedInAsChildUser(); |
488 IsLoggedInAsRegularSupervisedUser(); | |
489 } | 488 } |
490 | 489 |
491 bool AccessibilityManager::IsLargeCursorEnabled() { | 490 bool AccessibilityManager::IsLargeCursorEnabled() { |
492 return large_cursor_enabled_; | 491 return large_cursor_enabled_; |
493 } | 492 } |
494 | 493 |
495 void AccessibilityManager::EnableStickyKeys(bool enabled) { | 494 void AccessibilityManager::EnableStickyKeys(bool enabled) { |
496 if (!profile_) | 495 if (!profile_) |
497 return; | 496 return; |
498 PrefService* pref_service = profile_->GetPrefs(); | 497 PrefService* pref_service = profile_->GetPrefs(); |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1152 // Do any teardown work needed immediately after ChromeVox actually unloads. |
1154 if (system_sounds_enabled_) | 1153 if (system_sounds_enabled_) |
1155 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); | 1154 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); |
1156 #endif | 1155 #endif |
1157 // Clear the accessibility focus ring. | 1156 // Clear the accessibility focus ring. |
1158 AccessibilityFocusRingController::GetInstance()->SetFocusRing( | 1157 AccessibilityFocusRingController::GetInstance()->SetFocusRing( |
1159 std::vector<gfx::Rect>()); | 1158 std::vector<gfx::Rect>()); |
1160 } | 1159 } |
1161 | 1160 |
1162 } // namespace chromeos | 1161 } // namespace chromeos |
OLD | NEW |