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/common/accessibility_types.h" |
7 #include "ash/magnifier/magnification_controller.h" | 8 #include "ash/magnifier/magnification_controller.h" |
8 #include "ash/shell.h" | 9 #include "ash/shell.h" |
9 #include "base/command_line.h" | 10 #include "base/command_line.h" |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" | 14 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
14 #include "chrome/browser/chromeos/login/helper.h" | 15 #include "chrome/browser/chromeos/login/helper.h" |
15 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 16 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
16 #include "chrome/browser/chromeos/preferences.h" | 17 #include "chrome/browser/chromeos/preferences.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 void SetHighContrastEnabled(bool enabled) { | 112 void SetHighContrastEnabled(bool enabled) { |
112 return AccessibilityManager::Get()->EnableHighContrast(enabled); | 113 return AccessibilityManager::Get()->EnableHighContrast(enabled); |
113 } | 114 } |
114 | 115 |
115 bool IsHighContrastEnabled() { | 116 bool IsHighContrastEnabled() { |
116 return AccessibilityManager::Get()->IsHighContrastEnabled(); | 117 return AccessibilityManager::Get()->IsHighContrastEnabled(); |
117 } | 118 } |
118 | 119 |
119 void SetSpokenFeedbackEnabled(bool enabled) { | 120 void SetSpokenFeedbackEnabled(bool enabled) { |
120 return AccessibilityManager::Get()->EnableSpokenFeedback( | 121 return AccessibilityManager::Get()->EnableSpokenFeedback( |
121 enabled, ui::A11Y_NOTIFICATION_NONE); | 122 enabled, ash::A11Y_NOTIFICATION_NONE); |
122 } | 123 } |
123 | 124 |
124 bool IsSpokenFeedbackEnabled() { | 125 bool IsSpokenFeedbackEnabled() { |
125 return AccessibilityManager::Get()->IsSpokenFeedbackEnabled(); | 126 return AccessibilityManager::Get()->IsSpokenFeedbackEnabled(); |
126 } | 127 } |
127 | 128 |
128 void SetAutoclickEnabled(bool enabled) { | 129 void SetAutoclickEnabled(bool enabled) { |
129 return AccessibilityManager::Get()->EnableAutoclick(enabled); | 130 return AccessibilityManager::Get()->EnableAutoclick(enabled); |
130 } | 131 } |
131 | 132 |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 EXPECT_FALSE(ShouldShowAccessibilityMenu()); | 795 EXPECT_FALSE(ShouldShowAccessibilityMenu()); |
795 | 796 |
796 // Check mono audio output. | 797 // Check mono audio output. |
797 SetMonoAudioEnabled(true); | 798 SetMonoAudioEnabled(true); |
798 EXPECT_TRUE(ShouldShowAccessibilityMenu()); | 799 EXPECT_TRUE(ShouldShowAccessibilityMenu()); |
799 SetMonoAudioEnabled(false); | 800 SetMonoAudioEnabled(false); |
800 EXPECT_FALSE(ShouldShowAccessibilityMenu()); | 801 EXPECT_FALSE(ShouldShowAccessibilityMenu()); |
801 } | 802 } |
802 | 803 |
803 } // namespace chromeos | 804 } // namespace chromeos |
OLD | NEW |