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

Unified 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: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/common/view_message_enums.h
diff --git a/content/common/view_message_enums.h b/content/common/view_message_enums.h
index 59a6da11b0aed6f04f35803b5ecde6422763356d..a91e41aa808df7707a0b4460be88a10ef13c5f57 100644
--- a/content/common/view_message_enums.h
+++ b/content/common/view_message_enums.h
@@ -53,19 +53,18 @@ struct ViewMsg_Navigate_Type {
};
};
-enum AccessibilityMode {
- // WebKit accessibility is off and no accessibility information is
- // sent from the renderer to the browser process.
- AccessibilityModeOff,
David Tseng 2014/01/23 18:44:19 Let's keep an off defined in this enum as 0.
aboxhall 2014/01/27 18:03:15 I added a separate constants enum as discussed.
+enum AccessibilityModeFlag {
+ // WebKit accessibility is on and accessibility information is sent from the
David Tseng 2014/01/23 18:44:19 Blink
aboxhall 2014/01/27 18:03:15 Done.
+ // renderer to the browser process.
+ AccessibilityModeFlagRenderer = 1 << 0,
David Tseng 2014/01/23 18:44:19 Isn't this bit implied for all (except off)? Why d
aboxhall 2014/01/27 18:03:15 I just realised I totally misunderstood this comme
+
+ // Platform APIs are called for all accessibility updates and events.
David Tseng 2014/01/23 18:44:19 How about: Accessibility updates are processed to
aboxhall 2014/01/27 18:03:15 Done.
+ AccessibilityModeFlagPlatform = 1 << 1,
// WebKit accessibility is on, but only limited information about
// editable text nodes is sent to the browser process. Useful for
// implementing limited UIA on tablets.
- AccessibilityModeEditableTextOnly,
-
- // WebKit accessibility is on, and the full accessibility tree is synced
- // to the browser process. Useful for screen readers and magnifiers.
- AccessibilityModeComplete,
+ AccessibilityModeFlagEditableTextOnly = 1 << 2,
};
#endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_

Powered by Google App Engine
This is Rietveld 408576698