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

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

Issue 407493002: Revert of Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/frame_message_enums.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
6 #define CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
7
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,
14
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,
19 };
20
21 enum AccessibilityMode {
22 // All accessibility is off.
23 AccessibilityModeOff = 0,
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.
30 AccessibilityModeComplete =
31 AccessibilityModeFlagPlatform | AccessibilityModeFlagFullTree,
32
33 // Renderer accessibility is on, and events are passed to any extensions
34 // requesting automation, but not to platform accessibility.
35 AccessibilityModeTreeOnly = AccessibilityModeFlagFullTree,
36 };
37
38 #endif // CONTENT_COMMON_ACCESSIBILITY_MODE_ENUMS_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/frame_message_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698