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

Unified Diff: ui/accessibility/ax_node_data.cc

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 | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index 2f63c83c04aa06a703e5657a3bc11e59f30b54ff..f32cd3029e1d2391c3c27e5c89620f89f5f88737 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -226,6 +226,25 @@ std::string AXNodeData::ToString() const {
break;
}
break;
+ case AX_ATTR_INVALID_STATE:
+ switch (int_attributes[i].second) {
+ case AX_INVALID_STATE_FALSE:
+ result += " invalid_state=false";
+ break;
+ case AX_INVALID_STATE_TRUE:
+ result += " invalid_state=true";
+ break;
+ case AX_INVALID_STATE_SPELLING:
+ result += " invalid_state=spelling";
+ break;
+ case AX_INVALID_STATE_GRAMMAR:
+ result += " invalid_state=grammar";
+ break;
+ case AX_INVALID_STATE_OTHER:
+ result += " invalid_state=other";
+ break;
+ }
+ break;
case AX_INT_ATTRIBUTE_NONE:
break;
}
@@ -267,6 +286,9 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_HTML_TAG:
result += " html_tag=" + value;
break;
+ case AX_ATTR_ARIA_INVALID_VALUE:
+ result += " aria_invalid_value=" + value;
+ break;
case AX_ATTR_LIVE_RELEVANT:
result += " relevant=" + value;
break;
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698