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

Unified Diff: content/common/view_message_enums.h

Issue 9939011: Add an accessibility mode for editable text fields only. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and rebased. Created 8 years, 8 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 29761b296b4604270b4c8fc2e102a4012d3a7f60..772dbcaacc825b8ad3285f718ce481fbc56b7211 100644
--- a/content/common/view_message_enums.h
+++ b/content/common/view_message_enums.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
#define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_
+#include "ipc/ipc_message_macros.h"
+
// Values that may be OR'd together to form the 'flags' parameter of a
// ViewHostMsg_UpdateRect_Params structure.
struct ViewHostMsg_UpdateRect_Flags {
@@ -48,4 +50,19 @@ struct ViewMsg_Navigate_Type {
};
};
+enum AccessibilityMode {
+ // WebKit accessibility is off and no accessibility information is
+ // sent from the renderer to the browser process.
+ AccessibilityModeOff,
+
+ // 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,
+};
+
#endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_

Powered by Google App Engine
This is Rietveld 408576698