| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 class WebUI; | 11 class WebUI; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 namespace accessibility { | 15 namespace accessibility { |
| 16 | 16 |
| 17 // Enable or disable spoken feedback. Enabling spoken feedback installs the | 17 // Enable or disable spoken feedback. Enabling spoken feedback installs the |
| 18 // ChromeVox component extension. If this is being called in a login/oobe | 18 // ChromeVox component extension. If this is being called in a login/oobe |
| 19 // login screen, pass the WebUI object in login_web_ui so that ChromeVox | 19 // login screen, pass the WebUI object in login_web_ui so that ChromeVox |
| 20 // can be injected directly into that screen, otherwise it should be NULL. | 20 // can be injected directly into that screen, otherwise it should be NULL. |
| 21 void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui); | 21 void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui); |
| 22 | 22 |
| 23 // Enable or disable the high contrast mode for Chrome. | 23 // Enable or disable the high contrast mode for Chrome. |
| 24 void EnableHighContrast(bool enabled); | 24 void EnableHighContrast(bool enabled); |
| 25 | 25 |
| 26 // String constants of the magnifier types. |
| 27 extern const char kScreenMagnifierOff[]; |
| 28 extern const char kScreenMagnifierFull[]; |
| 29 extern const char kScreenMagnifierPartial[]; |
| 30 |
| 26 enum ScreenMagnifierType { | 31 enum ScreenMagnifierType { |
| 27 MAGNIFIER_OFF, | 32 MAGNIFIER_OFF, |
| 28 MAGNIFIER_FULL, | 33 MAGNIFIER_FULL, |
| 29 MAGNIFIER_PARTIAL, | 34 MAGNIFIER_PARTIAL, |
| 30 }; | 35 }; |
| 31 | 36 |
| 32 // Set the type of screen magnifier, or disable it. | 37 // Set the type of screen magnifier, or disable it. |
| 33 void SetScreenMagnifier(ScreenMagnifierType type); | 38 void SetScreenMagnifier(ScreenMagnifierType type); |
| 34 | 39 |
| 35 // Enable or disable the virtual keyboard. | 40 // Enable or disable the virtual keyboard. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 57 // Translates from a ScreenMagnifierType to type string. | 62 // Translates from a ScreenMagnifierType to type string. |
| 58 const char* ScreenMagnifierNameFromType(ScreenMagnifierType type); | 63 const char* ScreenMagnifierNameFromType(ScreenMagnifierType type); |
| 59 | 64 |
| 60 // Speak the given text if the accessibility pref is already set. | 65 // Speak the given text if the accessibility pref is already set. |
| 61 void MaybeSpeak(const std::string& utterance); | 66 void MaybeSpeak(const std::string& utterance); |
| 62 | 67 |
| 63 } // namespace accessibility | 68 } // namespace accessibility |
| 64 } // namespace chromeos | 69 } // namespace chromeos |
| 65 | 70 |
| 66 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ | 71 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ |
| OLD | NEW |