Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: content/common/accessibility_mode_enums.h

Issue 651593002: Remove RendererAccessibilityFocusOnly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_ 5 #ifndef CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
6 #define CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_ 6 #define CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
7 7
8 // Note: keep enums in content/browser/resources/accessibility/accessibility.js 8 // Note: keep enums in content/browser/resources/accessibility/accessibility.js
9 // in sync with these two enums. 9 // in sync with these two enums.
10 enum AccessibilityModeFlag { 10 enum AccessibilityModeFlag {
11 // Accessibility updates are processed to create platform trees and events are 11 // Accessibility updates are processed to create platform trees and events are
12 // passed to platform APIs in the browser. 12 // passed to platform APIs in the browser.
13 AccessibilityModeFlagPlatform = 1 << 0, 13 AccessibilityModeFlagPlatform = 1 << 0,
14 14
15 // Accessibility is on, and the full tree is computed. If this flag is off, 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 16 // only limited information about editable text nodes is sent to the browser
17 // process. Useful for implementing limited UIA on tablets. 17 // process. Useful for implementing limited UIA on tablets.
18 AccessibilityModeFlagFullTree = 1 << 1, 18 AccessibilityModeFlagFullTree = 1 << 1,
19 }; 19 };
20 20
21 enum AccessibilityMode { 21 enum AccessibilityMode {
22 // All accessibility is off. 22 // All accessibility is off.
23 AccessibilityModeOff = 0, 23 AccessibilityModeOff = 0,
24 24
25 // Renderer accessibility is on, platform APIs are called, but only limited
26 // information is available (see AccessibilityModeFlagEditableTextOnly).
27 AccessibilityModeEditableTextOnly = AccessibilityModeFlagPlatform,
28
29 // Renderer accessibility is on, and platform APIs are called. 25 // Renderer accessibility is on, and platform APIs are called.
30 AccessibilityModeComplete = 26 AccessibilityModeComplete =
31 AccessibilityModeFlagPlatform | AccessibilityModeFlagFullTree, 27 AccessibilityModeFlagPlatform | AccessibilityModeFlagFullTree,
32 28
33 // Renderer accessibility is on, and events are passed to any extensions 29 // Renderer accessibility is on, and events are passed to any extensions
34 // requesting automation, but not to platform accessibility. 30 // requesting automation, but not to platform accessibility.
35 AccessibilityModeTreeOnly = AccessibilityModeFlagFullTree, 31 AccessibilityModeTreeOnly = AccessibilityModeFlagFullTree,
36 }; 32 };
37 33
38 #endif // CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_ 34 #endif // CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698