Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 542623002: Minimal support for OOBE/login for chrome-athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments resolved Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 preload_engines.erase(it); 852 preload_engines.erase(it);
853 pref_service->SetString(prefs::kLanguagePreloadEngines, 853 pref_service->SetString(prefs::kLanguagePreloadEngines,
854 JoinString(preload_engines, ',')); 854 JoinString(preload_engines, ','));
855 braille_ime_current_ = false; 855 braille_ime_current_ = false;
856 } 856 }
857 857
858 // Overridden from InputMethodManager::Observer. 858 // Overridden from InputMethodManager::Observer.
859 void AccessibilityManager::InputMethodChanged( 859 void AccessibilityManager::InputMethodChanged(
860 input_method::InputMethodManager* manager, 860 input_method::InputMethodManager* manager,
861 bool show_message) { 861 bool show_message) {
862 #if defined(USE_ASH) 862 #if defined(USE_ASH) && !defined(USE_ATHENA)
oshima 2014/09/09 06:32:50 can you add crbug.com/408733 ?
Dmitry Polukhin 2014/09/10 20:30:23 Done.
863 // Sticky keys is implemented only in ash. 863 // Sticky keys is implemented only in ash.
864 ash::Shell::GetInstance()->sticky_keys_controller()->SetModifiersEnabled( 864 ash::Shell::GetInstance()->sticky_keys_controller()->SetModifiersEnabled(
865 manager->IsISOLevel5ShiftUsedByCurrentInputMethod(), 865 manager->IsISOLevel5ShiftUsedByCurrentInputMethod(),
866 manager->IsAltGrUsedByCurrentInputMethod()); 866 manager->IsAltGrUsedByCurrentInputMethod());
867 #endif 867 #endif
868 const chromeos::input_method::InputMethodDescriptor descriptor = 868 const chromeos::input_method::InputMethodDescriptor descriptor =
869 manager->GetActiveIMEState()->GetCurrentInputMethod(); 869 manager->GetActiveIMEState()->GetCurrentInputMethod();
870 braille_ime_current_ = 870 braille_ime_current_ =
871 (descriptor.id() == extension_misc::kBrailleImeEngineId); 871 (descriptor.id() == extension_misc::kBrailleImeEngineId);
872 } 872 }
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 chrome_vox_loaded_on_lock_screen_; 1116 chrome_vox_loaded_on_lock_screen_;
1117 } 1117 }
1118 1118
1119 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { 1119 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) {
1120 // Do any teardown work needed immediately after ChromeVox actually unloads. 1120 // Do any teardown work needed immediately after ChromeVox actually unloads.
1121 if (system_sounds_enabled_) 1121 if (system_sounds_enabled_)
1122 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); 1122 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED);
1123 } 1123 }
1124 1124
1125 } // namespace chromeos 1125 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698