| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_UTIL_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_UTIL_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 class WebUI; | |
| 10 | |
| 11 namespace chromeos { | |
| 12 namespace accessibility { | |
| 13 | |
| 14 // Enable or disable accessibility. Enabling accessibility installs the | |
| 15 // ChromeVox component extension. If this is being called in a login/oobe | |
| 16 // login screen, pass the WebUI object in login_web_ui so that ChromeVox | |
| 17 // can be injected directly into that screen, otherwise it should be NULL. | |
| 18 void EnableAccessibility(bool enabled, WebUI* login_web_ui); | |
| 19 | |
| 20 // Toggles whether Chrome OS accessibility is on or off. See docs for | |
| 21 // EnableAccessibility, above. | |
| 22 void ToggleAccessibility(WebUI* login_web_ui); | |
| 23 | |
| 24 // Speaks the specified string. | |
| 25 void Speak(const char* speak_str); | |
| 26 | |
| 27 // Returns true if Accessibility is enabled, or false if not. | |
| 28 bool IsAccessibilityEnabled(); | |
| 29 | |
| 30 } // namespace accessibility | |
| 31 } // namespace chromeos | |
| 32 | |
| 33 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_UTIL_H_ | |
| OLD | NEW |