Blink roll 25b6bd3a7a131ffe68d809546ad1a20707915cdc:3a503f41ae42e5b79cfcd2ff10e65afde...
[chromium-blink-merge.git] / content / common / accessibility_mode_enums.h
blobae059f264140ebee1b496ba581f2e4d064405377
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, and platform APIs are called.
26 AccessibilityModeComplete =
27 AccessibilityModeFlagPlatform | AccessibilityModeFlagFullTree,
29 // Renderer accessibility is on, and events are passed to any extensions
30 // requesting automation, but not to platform accessibility.
31 AccessibilityModeTreeOnly = AccessibilityModeFlagFullTree,
34 #endif // CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_