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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 1952863003: Implemented the "aria-current" state on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed switch statements to handle NONE case. Created 4 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_tree_combiner.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 bc7fff2bcc1381c762c5e67bef8dfa50a0b602c6..9a3c3f937a6d4eb7b2cf5dc46003523934d3a0d6 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -449,6 +449,31 @@ std::string AXNodeData::ToString() const {
result += base::StringPrintf(" color_value=&%X",
int_attributes[i].second);
break;
+ case AX_ATTR_ARIA_CURRENT_STATE:
+ switch (int_attributes[i].second) {
+ case AX_ARIA_CURRENT_STATE_FALSE:
+ result += " aria_current_state=false";
+ break;
+ case AX_ARIA_CURRENT_STATE_TRUE:
+ result += " aria_current_state=true";
+ break;
+ case AX_ARIA_CURRENT_STATE_PAGE:
+ result += " aria_current_state=page";
+ break;
+ case AX_ARIA_CURRENT_STATE_STEP:
+ result += " aria_current_state=step";
+ break;
+ case AX_ARIA_CURRENT_STATE_LOCATION:
+ result += " aria_current_state=location";
+ break;
+ case AX_ARIA_CURRENT_STATE_DATE:
+ result += " aria_current_state=date";
+ break;
+ case AX_ARIA_CURRENT_STATE_TIME:
+ result += " aria_current_state=time";
+ break;
+ }
+ break;
case AX_ATTR_BACKGROUND_COLOR:
result += base::StringPrintf(" background_color=&%X",
int_attributes[i].second);
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | ui/accessibility/ax_tree_combiner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698