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

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: Separated ARIA grid and HTML table tests. Created 5 years, 11 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
Index: ui/accessibility/ax_node_data.cc
diff --git a/ui/accessibility/ax_node_data.cc b/ui/accessibility/ax_node_data.cc
index f32cd3029e1d2391c3c27e5c89620f89f5f88737..6ca7df22ea90df532d47eddbe6406ab5736be96a 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:
dmazzoni 2015/01/27 18:59:17 nit: indent 2 less
+ 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;
« content/browser/accessibility/browser_accessibility_win.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