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 "ash/audio/sounds.h" | 7 #include "ash/audio/sounds.h" |
8 #include "ash/autoclick/autoclick_controller.h" | 8 #include "ash/autoclick/autoclick_controller.h" |
9 #include "ash/high_contrast/high_contrast_controller.h" | 9 #include "ash/high_contrast/high_contrast_controller.h" |
10 #include "ash/metrics/user_metrics_recorder.h" | 10 #include "ash/metrics/user_metrics_recorder.h" |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 | 459 |
460 #if defined(OS_CHROMEOS) | 460 #if defined(OS_CHROMEOS) |
461 ash::Shell::GetInstance()->SetCursorCompositingEnabled( | 461 ash::Shell::GetInstance()->SetCursorCompositingEnabled( |
462 ShouldEnableCursorCompositing()); | 462 ShouldEnableCursorCompositing()); |
463 #endif | 463 #endif |
464 } | 464 } |
465 | 465 |
466 bool AccessibilityManager::IsIncognitoAllowed() { | 466 bool AccessibilityManager::IsIncognitoAllowed() { |
467 UserManager* user_manager = UserManager::Get(); | 467 UserManager* user_manager = UserManager::Get(); |
468 // Supervised users can't create incognito-mode windows. | 468 // Supervised users can't create incognito-mode windows. |
469 return !(user_manager->IsLoggedInAsLocallyManagedUser()); | 469 return !(user_manager->IsLoggedInAsSupervisedUser()); |
470 } | 470 } |
471 | 471 |
472 bool AccessibilityManager::IsLargeCursorEnabled() { | 472 bool AccessibilityManager::IsLargeCursorEnabled() { |
473 return large_cursor_enabled_; | 473 return large_cursor_enabled_; |
474 } | 474 } |
475 | 475 |
476 void AccessibilityManager::EnableStickyKeys(bool enabled) { | 476 void AccessibilityManager::EnableStickyKeys(bool enabled) { |
477 if (!profile_) | 477 if (!profile_) |
478 return; | 478 return; |
479 PrefService* pref_service = profile_->GetPrefs(); | 479 PrefService* pref_service = profile_->GetPrefs(); |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 chrome_vox_loaded_on_lock_screen_; | 1106 chrome_vox_loaded_on_lock_screen_; |
1107 } | 1107 } |
1108 | 1108 |
1109 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { | 1109 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { |
1110 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1110 // Do any teardown work needed immediately after ChromeVox actually unloads. |
1111 if (system_sounds_enabled_) | 1111 if (system_sounds_enabled_) |
1112 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); | 1112 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); |
1113 } | 1113 } |
1114 | 1114 |
1115 } // namespace chromeos | 1115 } // namespace chromeos |
OLD | NEW |