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

Unified Diff: ui/accessibility/ax_enums.idl

Issue 790003003: Exposed the invalid state of form controls to the accessibility APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tried fixing Android unit tests. Created 5 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
« no previous file with comments | « content/test/data/accessibility/html/readme.txt ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_enums.idl
diff --git a/ui/accessibility/ax_enums.idl b/ui/accessibility/ax_enums.idl
index 0f8c58c8f3be46ea7ecc264073fd5996be3262ed..b0d926a47af8f7ab3b1afbeecceb518fc6dac8cb 100644
--- a/ui/accessibility/ax_enums.idl
+++ b/ui/accessibility/ax_enums.idl
@@ -235,6 +235,8 @@
display,
help,
html_tag,
+ // Only used when invalid_state == invalid_state_other.
+ aria_invalid_value,
name,
live_relevant,
live_status,
@@ -297,7 +299,11 @@
tree_id,
// Identifies a child tree which this node hosts.
- child_tree_id
+ child_tree_id,
+
+ // Indicates if a form control has invalid input or
+ // if an element has an aria-invalid attribute.
+ invalid_state
};
[cpp_enum_prefix_override="ax_attr"] enum AXFloatAttribute {
@@ -388,4 +394,13 @@
text_direction_tb,
text_direction_bt
};
+
+ [cpp_enum_prefix_override="ax"] enum AXInvalidState {
+ invalid_state_false,
+ invalid_state_true,
+ invalid_state_spelling,
+ invalid_state_grammar,
+ invalid_state_other
+ };
+
};
« no previous file with comments | « content/test/data/accessibility/html/readme.txt ('k') | ui/accessibility/ax_node_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698