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

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

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Switch back to AccessibilityMode enums in accessibility_ui.cc Created 6 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEW_MESSAGES_ENUMS_H_ 5 #ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ 6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
7 7
8 #include "ipc/ipc_message_macros.h" 8 #include "ipc/ipc_message_macros.h"
9 9
10 // Values that may be OR'd together to form the 'flags' parameter of a 10 // Values that may be OR'd together to form the 'flags' parameter of a
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 RESTORE, 46 RESTORE,
47 47
48 // Like RESTORE, except that the navigation contains POST data. 48 // Like RESTORE, except that the navigation contains POST data.
49 RESTORE_WITH_POST, 49 RESTORE_WITH_POST,
50 50
51 // Navigation type not categorized by the other types. 51 // Navigation type not categorized by the other types.
52 NORMAL 52 NORMAL
53 }; 53 };
54 }; 54 };
55 55
56 enum AccessibilityModeFlag {
57 // Accessibility updates are processed to create platform trees and events are
58 // passed to platform APIs in the browser.
59 AccessibilityModeFlagPlatform = 1 << 0,
60
61 // Accessibility is on, and the full tree is computed. If this flag is off,
62 // only limited information about editable text nodes is sent to the browser
63 // process. Useful for implementing limited UIA on tablets.
64 AccessibilityModeFlagPlatformFullTree = 1 << 1,
65 };
66
56 enum AccessibilityMode { 67 enum AccessibilityMode {
57 // WebKit accessibility is off and no accessibility information is 68 // All accessibility is off.
58 // sent from the renderer to the browser process. 69 AccessibilityModeOff = 0,
59 AccessibilityModeOff,
60 70
61 // WebKit accessibility is on, but only limited information about 71 // Renderer accessibility is on, and platform APIs are called. Note that this
62 // editable text nodes is sent to the browser process. Useful for 72 // is different to AccessibilityModeAll, which is defined to be all bits on.
63 // implementing limited UIA on tablets. 73 AccessibilityModeComplete =
64 AccessibilityModeEditableTextOnly, 74 AccessibilityModeFlagPlatform | AccessibilityModeFlagPlatformFullTree,
65 75
66 // WebKit accessibility is on, and the full accessibility tree is synced 76 // Renderer accessibility is on, platform APIs are called, but only limited
67 // to the browser process. Useful for screen readers and magnifiers. 77 // information is available (see AccessibilityModeFlagEditableTextOnly).
68 AccessibilityModeComplete, 78 AccessibilityModeEditableTextOnly = AccessibilityModeFlagPlatform
69 }; 79 };
70 80
71 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ 81 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698