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 |