| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Toggles whether Chrome OS spoken feedback is on or off. See docs for | 33 // Toggles whether Chrome OS spoken feedback is on or off. See docs for |
| 34 // EnableSpokenFeedback, above. | 34 // EnableSpokenFeedback, above. |
| 35 void ToggleSpokenFeedback(content::WebUI* login_web_ui); | 35 void ToggleSpokenFeedback(content::WebUI* login_web_ui); |
| 36 | 36 |
| 37 // Speaks the specified string. | 37 // Speaks the specified string. |
| 38 void Speak(const std::string& utterance); | 38 void Speak(const std::string& utterance); |
| 39 | 39 |
| 40 // Returns true if spoken feedback is enabled, or false if not. | 40 // Returns true if spoken feedback is enabled, or false if not. |
| 41 bool IsSpokenFeedbackEnabled(); | 41 bool IsSpokenFeedbackEnabled(); |
| 42 | 42 |
| 43 // Returns true if High Contrast is enabled, or false if not. |
| 44 bool IsHighContrastEnabled(); |
| 45 |
| 43 // Speak the given text if the accessibility pref is already set. | 46 // Speak the given text if the accessibility pref is already set. |
| 44 void MaybeSpeak(const std::string& utterance); | 47 void MaybeSpeak(const std::string& utterance); |
| 45 | 48 |
| 46 } // namespace accessibility | 49 } // namespace accessibility |
| 47 } // namespace chromeos | 50 } // namespace chromeos |
| 48 | 51 |
| 49 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_UTIL_H_ |
| OLD | NEW |