| 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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 UpdateBrailleImeState(); | 921 UpdateBrailleImeState(); |
| 922 UpdateLargeCursorFromPref(); | 922 UpdateLargeCursorFromPref(); |
| 923 UpdateStickyKeysFromPref(); | 923 UpdateStickyKeysFromPref(); |
| 924 UpdateSpokenFeedbackFromPref(); | 924 UpdateSpokenFeedbackFromPref(); |
| 925 UpdateHighContrastFromPref(); | 925 UpdateHighContrastFromPref(); |
| 926 UpdateAutoclickFromPref(); | 926 UpdateAutoclickFromPref(); |
| 927 UpdateAutoclickDelayFromPref(); | 927 UpdateAutoclickDelayFromPref(); |
| 928 UpdateVirtualKeyboardFromPref(); | 928 UpdateVirtualKeyboardFromPref(); |
| 929 } | 929 } |
| 930 | 930 |
| 931 void AccessibilityManager::ActiveUserChanged(const std::string& user_id) { | 931 void AccessibilityManager::ActiveUserChanged(const user_manager::UserID& user_id
) { |
| 932 SetProfile(ProfileManager::GetActiveUserProfile()); | 932 SetProfile(ProfileManager::GetActiveUserProfile()); |
| 933 } | 933 } |
| 934 | 934 |
| 935 void AccessibilityManager::SetProfileForTest(Profile* profile) { | 935 void AccessibilityManager::SetProfileForTest(Profile* profile) { |
| 936 SetProfile(profile); | 936 SetProfile(profile); |
| 937 } | 937 } |
| 938 | 938 |
| 939 void AccessibilityManager::SetBrailleControllerForTest( | 939 void AccessibilityManager::SetBrailleControllerForTest( |
| 940 BrailleController* controller) { | 940 BrailleController* controller) { |
| 941 g_braille_controller_for_test = controller; | 941 g_braille_controller_for_test = controller; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { | 1112 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { |
| 1113 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1113 // Do any teardown work needed immediately after ChromeVox actually unloads. |
| 1114 if (system_sounds_enabled_) | 1114 if (system_sounds_enabled_) |
| 1115 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); | 1115 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); |
| 1116 // Clear the accessibility focus ring. | 1116 // Clear the accessibility focus ring. |
| 1117 AccessibilityFocusRingController::GetInstance()->SetFocusRing( | 1117 AccessibilityFocusRingController::GetInstance()->SetFocusRing( |
| 1118 std::vector<gfx::Rect>()); | 1118 std::vector<gfx::Rect>()); |
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 } // namespace chromeos | 1121 } // namespace chromeos |
| OLD | NEW |