| 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/magnifier/magnification_controller.h" | 7 #include "ash/magnifier/magnification_controller.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 void SetHighContrastEnabled(bool enabled) { | 109 void SetHighContrastEnabled(bool enabled) { |
| 110 return AccessibilityManager::Get()->EnableHighContrast(enabled); | 110 return AccessibilityManager::Get()->EnableHighContrast(enabled); |
| 111 } | 111 } |
| 112 | 112 |
| 113 bool IsHighContrastEnabled() { | 113 bool IsHighContrastEnabled() { |
| 114 return AccessibilityManager::Get()->IsHighContrastEnabled(); | 114 return AccessibilityManager::Get()->IsHighContrastEnabled(); |
| 115 } | 115 } |
| 116 | 116 |
| 117 void SetSpokenFeedbackEnabled(bool enabled) { | 117 void SetSpokenFeedbackEnabled(bool enabled) { |
| 118 return AccessibilityManager::Get()->EnableSpokenFeedback( | 118 return AccessibilityManager::Get()->EnableSpokenFeedback( |
| 119 enabled, ash::A11Y_NOTIFICATION_NONE); | 119 enabled, ui::A11Y_NOTIFICATION_NONE); |
| 120 } | 120 } |
| 121 | 121 |
| 122 bool IsSpokenFeedbackEnabled() { | 122 bool IsSpokenFeedbackEnabled() { |
| 123 return AccessibilityManager::Get()->IsSpokenFeedbackEnabled(); | 123 return AccessibilityManager::Get()->IsSpokenFeedbackEnabled(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void SetAutoclickEnabled(bool enabled) { | 126 void SetAutoclickEnabled(bool enabled) { |
| 127 return AccessibilityManager::Get()->EnableAutoclick(enabled); | 127 return AccessibilityManager::Get()->EnableAutoclick(enabled); |
| 128 } | 128 } |
| 129 | 129 |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 EXPECT_FALSE(ShouldShowAccessibilityMenu()); | 705 EXPECT_FALSE(ShouldShowAccessibilityMenu()); |
| 706 | 706 |
| 707 // Check on-screen keyboard. | 707 // Check on-screen keyboard. |
| 708 SetVirtualKeyboardEnabled(true); | 708 SetVirtualKeyboardEnabled(true); |
| 709 EXPECT_TRUE(ShouldShowAccessibilityMenu()); | 709 EXPECT_TRUE(ShouldShowAccessibilityMenu()); |
| 710 SetVirtualKeyboardEnabled(false); | 710 SetVirtualKeyboardEnabled(false); |
| 711 EXPECT_FALSE(ShouldShowAccessibilityMenu()); | 711 EXPECT_FALSE(ShouldShowAccessibilityMenu()); |
| 712 } | 712 } |
| 713 | 713 |
| 714 } // namespace chromeos | 714 } // namespace chromeos |
| OLD | NEW |