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 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 else | 835 else |
836 preload_engines.erase(it); | 836 preload_engines.erase(it); |
837 pref_service->SetString(prefs::kLanguagePreloadEngines, | 837 pref_service->SetString(prefs::kLanguagePreloadEngines, |
838 JoinString(preload_engines, ',')); | 838 JoinString(preload_engines, ',')); |
839 braille_ime_current_ = false; | 839 braille_ime_current_ = false; |
840 } | 840 } |
841 | 841 |
842 // Overridden from InputMethodManager::Observer. | 842 // Overridden from InputMethodManager::Observer. |
843 void AccessibilityManager::InputMethodChanged( | 843 void AccessibilityManager::InputMethodChanged( |
844 input_method::InputMethodManager* manager, | 844 input_method::InputMethodManager* manager, |
| 845 Profile* /* profile */, |
845 bool show_message) { | 846 bool show_message) { |
846 // Sticky keys is implemented only in ash. | 847 // Sticky keys is implemented only in ash. |
847 // TODO(dpolukhin): support Athena, crbug.com/408733. | 848 // TODO(dpolukhin): support Athena, crbug.com/408733. |
848 ash::Shell::GetInstance()->sticky_keys_controller()->SetModifiersEnabled( | 849 ash::Shell::GetInstance()->sticky_keys_controller()->SetModifiersEnabled( |
849 manager->IsISOLevel5ShiftUsedByCurrentInputMethod(), | 850 manager->IsISOLevel5ShiftUsedByCurrentInputMethod(), |
850 manager->IsAltGrUsedByCurrentInputMethod()); | 851 manager->IsAltGrUsedByCurrentInputMethod()); |
851 const chromeos::input_method::InputMethodDescriptor descriptor = | 852 const chromeos::input_method::InputMethodDescriptor descriptor = |
852 manager->GetActiveIMEState()->GetCurrentInputMethod(); | 853 manager->GetActiveIMEState()->GetCurrentInputMethod(); |
853 braille_ime_current_ = | 854 braille_ime_current_ = |
854 (descriptor.id() == extension_misc::kBrailleImeEngineId); | 855 (descriptor.id() == extension_misc::kBrailleImeEngineId); |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1111 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { | 1112 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { |
1112 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1113 // Do any teardown work needed immediately after ChromeVox actually unloads. |
1113 if (system_sounds_enabled_) | 1114 if (system_sounds_enabled_) |
1114 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); | 1115 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); |
1115 // Clear the accessibility focus ring. | 1116 // Clear the accessibility focus ring. |
1116 AccessibilityFocusRingController::GetInstance()->SetFocusRing( | 1117 AccessibilityFocusRingController::GetInstance()->SetFocusRing( |
1117 std::vector<gfx::Rect>()); | 1118 std::vector<gfx::Rect>()); |
1118 } | 1119 } |
1119 | 1120 |
1120 } // namespace chromeos | 1121 } // namespace chromeos |
OLD | NEW |