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

Unified Diff: ui/accessibility/ax_node_data.cc

Issue 744843002: Added the aria-sort state to the accessibility tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android test expectations. Created 5 years, 10 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 82a8f9cb358c62af49819309abc76c152d198c90..fe93e37c762d8f9d2767198e58fb30fd79e16b76 100644
--- a/ui/accessibility/ax_node_data.cc
+++ b/ui/accessibility/ax_node_data.cc
@@ -188,6 +188,22 @@ std::string AXNodeData::ToString() const {
case AX_ATTR_TABLE_ROW_INDEX:
result += " row_index=" + value;
break;
+ case AX_ATTR_SORT_DIRECTION:
+ switch (int_attributes[i].second) {
+ case AX_SORT_DIRECTION_UNSORTED:
+ result += " sort_direction=none";
+ break;
+ case AX_SORT_DIRECTION_ASCENDING:
+ result += " sort_direction=ascending";
+ break;
+ case AX_SORT_DIRECTION_DESCENDING:
+ result += " sort_direction=descending";
+ break;
+ case AX_SORT_DIRECTION_OTHER:
+ result += " sort_direction=other";
+ break;
+ }
+ break;
case AX_ATTR_TITLE_UI_ELEMENT:
result += " title_elem=" + 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