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

Unified Diff: third_party/WebKit/public/web/WebAXEnums.h

Issue 2589273002: Add sparse accessibility attribute interface to Blink (Closed)
Patch Set: Try to fix win component build compile Created 4 years 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: third_party/WebKit/public/web/WebAXEnums.h
diff --git a/third_party/WebKit/public/web/WebAXEnums.h b/third_party/WebKit/public/web/WebAXEnums.h
index 20f3e78ea263a81b3f15816a2098ebd3e3851328..966e395b5e3b77201b4eaf04f1aa48d9e7954ff9 100644
--- a/third_party/WebKit/public/web/WebAXEnums.h
+++ b/third_party/WebKit/public/web/WebAXEnums.h
@@ -338,6 +338,51 @@ enum WebAXTextAffinity {
WebAXTextAffinityDownstream
};
+//
+// Sparse accessibility attributes
+//
+// The following enums represent accessibility attributes that apply
+// to only a small fraction of WebAXObjects. Rather than the client
+// asking each WebAXObject for the value of each accessibility
+// attribute, it can call a single function to query for all
+// sparse attributes at the same time. Any sparse attributes that
+// are present are returned via a callback consisting of an attribute
+// key enum and an attribute value.
+//
+
+// Sparse attributes of a WebAXObject whose value is either true or
+// false. In order for it to be a sparse attribute the default value
+// must be false.
+enum class WebAXBoolAttribute {
+ AriaModal,
+};
+
+// Sparse attributes of a WebAXObject whose value is a string.
+// In order for it to be a sparse attribute the default value
+// must be "".
+enum class WebAXStringAttribute {
+ AriaKeyShortcuts,
+ AriaRoleDescription,
+};
+
+// Sparse attributes of a WebAXObject whose value is a reference to
+// another WebAXObject within the same frame. In order for it to be a
+// sparse attribute the default value must be the null WebAXObject.
+enum class WebAXObjectAttribute {
+ AriaActiveDescendant,
+ AriaErrorMessage,
+};
+
+// Sparse attributes of a WebAXObject whose value is a vector of
+// references to other WebAXObjects within the same frame. In order
+// for it to be a sparse attribute the default value must be the
+// empty vector.
+enum class WebAXObjectVectorAttribute {
+ AriaControls,
+ AriaDetails,
+ AriaFlowTo,
+};
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698