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; |