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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 2707263011: Test aria-pressed=mixed on windows (Closed)
Patch Set: git cl try Created 3 years, 7 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') | ui/accessibility/ax_node_position_unittest.cc » ('j') | 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 2cb05046ad47b8227fde6ac603fe3c9f5fa079e1..0422aa0716d3840e4bdd64e902b403238e5332e1 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -137,6 +137,7 @@ bool IsNodeIdIntAttribute(AXIntAttribute attr) {
case AX_ATTR_COLOR:
case AX_ATTR_INVALID_STATE:
case AX_ATTR_CHECKED_STATE:
+ case AX_ATTR_PRESSED_STATE:
case AX_ATTR_TEXT_DIRECTION:
case AX_ATTR_TEXT_STYLE:
case AX_ATTR_ARIA_COLUMN_COUNT:
@@ -737,17 +738,30 @@ std::string AXNodeData::ToString() const {
break;
case AX_ATTR_CHECKED_STATE:
switch (int_attributes[i].second) {
- case AX_CHECKED_STATE_FALSE:
+ case AX_BUTTON_STATE_FALSE:
result += " checked_state=false";
break;
- case AX_CHECKED_STATE_TRUE:
+ case AX_BUTTON_STATE_TRUE:
result += " checked_state=true";
break;
- case AX_CHECKED_STATE_MIXED:
+ case AX_BUTTON_STATE_MIXED:
result += " checked_state=mixed";
break;
}
break;
+ case AX_ATTR_PRESSED_STATE:
+ switch (int_attributes[i].second) {
+ case AX_BUTTON_STATE_FALSE:
+ result += " pressed_state=false";
+ break;
+ case AX_BUTTON_STATE_TRUE:
+ result += " pressed_state=true";
+ break;
+ case AX_BUTTON_STATE_MIXED:
+ result += " pressed_state=mixed";
+ break;
+ }
+ break;
case AX_INT_ATTRIBUTE_NONE:
break;
}
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_node_position_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698