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 // Do any accessibility initialization that should happen once on startup. |
| 18 void Initialize(); |
| 19 |
17 // Enable or disable spoken feedback. Enabling spoken feedback installs the | 20 // Enable or disable spoken feedback. Enabling spoken feedback installs the |
18 // ChromeVox component extension. If this is being called in a login/oobe | 21 // 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 | 22 // 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. | 23 // can be injected directly into that screen, otherwise it should be NULL. |
21 void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui); | 24 void EnableSpokenFeedback(bool enabled, content::WebUI* login_web_ui); |
22 | 25 |
23 // Enable or disable the high contrast mode for Chrome. | 26 // Enable or disable the high contrast mode for Chrome. |
24 void EnableHighContrast(bool enabled); | 27 void EnableHighContrast(bool enabled); |
25 | 28 |
26 // String constants of the magnifier types. | 29 // String constants of the magnifier types. |
(...skipping 19 matching lines...) Expand all Loading... |
46 | 49 |
47 // Speaks the specified string. | 50 // Speaks the specified string. |
48 void Speak(const std::string& utterance); | 51 void Speak(const std::string& utterance); |
49 | 52 |
50 // Returns true if spoken feedback is enabled, or false if not. | 53 // Returns true if spoken feedback is enabled, or false if not. |
51 bool IsSpokenFeedbackEnabled(); | 54 bool IsSpokenFeedbackEnabled(); |
52 | 55 |
53 // Returns true if High Contrast is enabled, or false if not. | 56 // Returns true if High Contrast is enabled, or false if not. |
54 bool IsHighContrastEnabled(); | 57 bool IsHighContrastEnabled(); |
55 | 58 |
| 59 // Returns true if the Virtual Keyboard is enabled, or false if not. |
| 60 bool IsVirtualKeyboardEnabled(); |
| 61 |
56 // Returns the current state of the screen magnifier. | 62 // Returns the current state of the screen magnifier. |
57 ScreenMagnifierType GetScreenMagnifierType(); | 63 ScreenMagnifierType GetScreenMagnifierType(); |
58 | 64 |
59 // Translates from a string to ScreenMagnifierType. | 65 // Translates from a string to ScreenMagnifierType. |
60 ScreenMagnifierType ScreenMagnifierTypeFromName(const char type_name[]); | 66 ScreenMagnifierType ScreenMagnifierTypeFromName(const char type_name[]); |
61 | 67 |
62 // Translates from a ScreenMagnifierType to type string. | 68 // Translates from a ScreenMagnifierType to type string. |
63 const char* ScreenMagnifierNameFromType(ScreenMagnifierType type); | 69 const char* ScreenMagnifierNameFromType(ScreenMagnifierType type); |
64 | 70 |
65 // Speak the given text if the accessibility pref is already set. | 71 // Speak the given text if the accessibility pref is already set. |
66 void MaybeSpeak(const std::string& utterance); | 72 void MaybeSpeak(const std::string& utterance); |
67 | 73 |
68 } // namespace accessibility | 74 } // namespace accessibility |
69 } // namespace chromeos | 75 } // namespace chromeos |
70 | 76 |
71 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ | 77 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ |
OLD | NEW |