1 // Copyright 2014 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.
5 #ifndef CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
6 #define CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
8 // Note: keep enums in content/browser/resources/accessibility/accessibility.js
9 // in sync with these two enums.
10 enum AccessibilityModeFlag
{
11 // Accessibility updates are processed to create platform trees and events are
12 // passed to platform APIs in the browser.
13 AccessibilityModeFlagPlatform
= 1 << 0,
15 // Accessibility is on, and the full tree is computed. If this flag is off,
16 // only limited information about editable text nodes is sent to the browser
17 // process. Useful for implementing limited UIA on tablets.
18 AccessibilityModeFlagFullTree
= 1 << 1,
21 enum AccessibilityMode
{
22 // All accessibility is off.
23 AccessibilityModeOff
= 0,
25 // Renderer accessibility is on, platform APIs are called, but only limited
26 // information is available (see AccessibilityModeFlagEditableTextOnly).
27 AccessibilityModeEditableTextOnly
= AccessibilityModeFlagPlatform
,
29 // Renderer accessibility is on, and platform APIs are called.
30 AccessibilityModeComplete
=
31 AccessibilityModeFlagPlatform
| AccessibilityModeFlagFullTree
,
33 // Renderer accessibility is on, and events are passed to any extensions
34 // requesting automation, but not to platform accessibility.
35 AccessibilityModeTreeOnly
= AccessibilityModeFlagFullTree
,
38 #endif // CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_