| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |