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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 virtual_keyboard_pref_handler_( | 334 virtual_keyboard_pref_handler_( |
335 prefs::kAccessibilityVirtualKeyboardEnabled), | 335 prefs::kAccessibilityVirtualKeyboardEnabled), |
336 large_cursor_enabled_(false), | 336 large_cursor_enabled_(false), |
337 sticky_keys_enabled_(false), | 337 sticky_keys_enabled_(false), |
338 spoken_feedback_enabled_(false), | 338 spoken_feedback_enabled_(false), |
339 high_contrast_enabled_(false), | 339 high_contrast_enabled_(false), |
340 autoclick_enabled_(false), | 340 autoclick_enabled_(false), |
341 autoclick_delay_ms_(ash::AutoclickController::kDefaultAutoclickDelayMs), | 341 autoclick_delay_ms_(ash::AutoclickController::kDefaultAutoclickDelayMs), |
342 virtual_keyboard_enabled_(false), | 342 virtual_keyboard_enabled_(false), |
343 spoken_feedback_notification_(ash::A11Y_NOTIFICATION_NONE), | 343 spoken_feedback_notification_(ash::A11Y_NOTIFICATION_NONE), |
344 weak_ptr_factory_(this), | |
345 should_speak_chrome_vox_announcements_on_user_screen_(true), | 344 should_speak_chrome_vox_announcements_on_user_screen_(true), |
346 system_sounds_enabled_(false), | 345 system_sounds_enabled_(false), |
347 braille_display_connected_(false), | 346 braille_display_connected_(false), |
348 scoped_braille_observer_(this), | 347 scoped_braille_observer_(this), |
349 braille_ime_current_(false) { | 348 braille_ime_current_(false), |
| 349 weak_ptr_factory_(this) { |
350 notification_registrar_.Add(this, | 350 notification_registrar_.Add(this, |
351 chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE, | 351 chrome::NOTIFICATION_LOGIN_OR_LOCK_WEBUI_VISIBLE, |
352 content::NotificationService::AllSources()); | 352 content::NotificationService::AllSources()); |
353 notification_registrar_.Add(this, | 353 notification_registrar_.Add(this, |
354 chrome::NOTIFICATION_SESSION_STARTED, | 354 chrome::NOTIFICATION_SESSION_STARTED, |
355 content::NotificationService::AllSources()); | 355 content::NotificationService::AllSources()); |
356 notification_registrar_.Add(this, | 356 notification_registrar_.Add(this, |
357 chrome::NOTIFICATION_PROFILE_DESTROYED, | 357 chrome::NOTIFICATION_PROFILE_DESTROYED, |
358 content::NotificationService::AllSources()); | 358 content::NotificationService::AllSources()); |
359 notification_registrar_.Add(this, | 359 notification_registrar_.Add(this, |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 chrome_vox_loaded_on_lock_screen_; | 1117 chrome_vox_loaded_on_lock_screen_; |
1118 } | 1118 } |
1119 | 1119 |
1120 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { | 1120 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { |
1121 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1121 // Do any teardown work needed immediately after ChromeVox actually unloads. |
1122 if (system_sounds_enabled_) | 1122 if (system_sounds_enabled_) |
1123 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); | 1123 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); |
1124 } | 1124 } |
1125 | 1125 |
1126 } // namespace chromeos | 1126 } // namespace chromeos |
OLD | NEW |