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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « ui/accessibility/ax_enums.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/accessibility/ax_node_data.h" 5 #include "ui/accessibility/ax_node_data.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 break; 181 break;
182 case AX_ATTR_TABLE_HEADER_ID: 182 case AX_ATTR_TABLE_HEADER_ID:
183 result += " header_id=" + value; 183 result += " header_id=" + value;
184 break; 184 break;
185 case AX_ATTR_TABLE_ROW_HEADER_ID: 185 case AX_ATTR_TABLE_ROW_HEADER_ID:
186 result += " row_header_id=" + value; 186 result += " row_header_id=" + value;
187 break; 187 break;
188 case AX_ATTR_TABLE_ROW_INDEX: 188 case AX_ATTR_TABLE_ROW_INDEX:
189 result += " row_index=" + value; 189 result += " row_index=" + value;
190 break; 190 break;
191 case AX_ATTR_SORT_DIRECTION:
192 switch (int_attributes[i].second) {
193 case AX_SORT_DIRECTION_UNSORTED:
194 result += " sort_direction=none";
195 break;
196 case AX_SORT_DIRECTION_ASCENDING:
197 result += " sort_direction=ascending";
198 break;
199 case AX_SORT_DIRECTION_DESCENDING:
200 result += " sort_direction=descending";
201 break;
202 case AX_SORT_DIRECTION_OTHER:
203 result += " sort_direction=other";
204 break;
205 }
206 break;
191 case AX_ATTR_TITLE_UI_ELEMENT: 207 case AX_ATTR_TITLE_UI_ELEMENT:
192 result += " title_elem=" + value; 208 result += " title_elem=" + value;
193 break; 209 break;
194 case AX_ATTR_ACTIVEDESCENDANT_ID: 210 case AX_ATTR_ACTIVEDESCENDANT_ID:
195 result += " activedescendant=" + value; 211 result += " activedescendant=" + value;
196 break; 212 break;
197 case AX_ATTR_COLOR_VALUE_RED: 213 case AX_ATTR_COLOR_VALUE_RED:
198 result += " color_value_red=" + value; 214 result += " color_value_red=" + value;
199 break; 215 break;
200 case AX_ATTR_COLOR_VALUE_GREEN: 216 case AX_ATTR_COLOR_VALUE_GREEN:
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 451 }
436 } 452 }
437 453
438 if (!child_ids.empty()) 454 if (!child_ids.empty())
439 result += " child_ids=" + IntVectorToString(child_ids); 455 result += " child_ids=" + IntVectorToString(child_ids);
440 456
441 return result; 457 return result;
442 } 458 }
443 459
444 } // namespace ui 460 } // namespace ui
OLDNEW
« 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