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