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 15 matching lines...) Expand all Loading... |
26 #include "base/values.h" | 26 #include "base/values.h" |
27 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 27 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
28 #include "chrome/browser/browser_process.h" | 28 #include "chrome/browser/browser_process.h" |
29 #include "chrome/browser/chrome_notification_types.h" | 29 #include "chrome/browser/chrome_notification_types.h" |
30 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" | 30 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
31 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 31 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
32 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 32 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
33 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" | 33 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" |
34 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" | 34 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" |
35 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 35 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 36 #include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h" |
36 #include "chrome/browser/extensions/component_loader.h" | 37 #include "chrome/browser/extensions/component_loader.h" |
37 #include "chrome/browser/extensions/extension_service.h" | 38 #include "chrome/browser/extensions/extension_service.h" |
38 #include "chrome/browser/profiles/profile.h" | 39 #include "chrome/browser/profiles/profile.h" |
39 #include "chrome/browser/profiles/profile_manager.h" | 40 #include "chrome/browser/profiles/profile_manager.h" |
40 #include "chrome/common/chrome_paths.h" | 41 #include "chrome/common/chrome_paths.h" |
41 #include "chrome/common/extensions/api/accessibility_private.h" | 42 #include "chrome/common/extensions/api/accessibility_private.h" |
42 #include "chrome/common/extensions/extension_constants.h" | 43 #include "chrome/common/extensions/extension_constants.h" |
43 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 44 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
44 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
45 #include "chrome/grit/browser_resources.h" | 46 #include "chrome/grit/browser_resources.h" |
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 should_speak_chrome_vox_announcements_on_user_screen_); | 1125 should_speak_chrome_vox_announcements_on_user_screen_); |
1125 | 1126 |
1126 should_speak_chrome_vox_announcements_on_user_screen_ = | 1127 should_speak_chrome_vox_announcements_on_user_screen_ = |
1127 chrome_vox_loaded_on_lock_screen_; | 1128 chrome_vox_loaded_on_lock_screen_; |
1128 } | 1129 } |
1129 | 1130 |
1130 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { | 1131 void AccessibilityManager::PostUnloadChromeVox(Profile* profile) { |
1131 // Do any teardown work needed immediately after ChromeVox actually unloads. | 1132 // Do any teardown work needed immediately after ChromeVox actually unloads. |
1132 if (system_sounds_enabled_) | 1133 if (system_sounds_enabled_) |
1133 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); | 1134 ash::PlaySystemSoundAlways(SOUND_SPOKEN_FEEDBACK_DISABLED); |
| 1135 // Clear the accessibility focus ring. |
| 1136 AccessibilityFocusRingController::GetInstance()->SetFocusRing( |
| 1137 std::vector<gfx::Rect>()); |
1134 } | 1138 } |
1135 | 1139 |
1136 } // namespace chromeos | 1140 } // namespace chromeos |
OLD | NEW |