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

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: Fixed BrowserAccessibilityCocoa::AXInvalid. Created 6 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: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index a14e4def02868d94118b8f128b57f18ff23e14ab..f1e27bb40ab156d38ca4fd580b7d16aa80097e67 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;
« content/renderer/accessibility/blink_ax_tree_source.cc ('K') | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698