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/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 break; | 185 break; |
186 case AX_ATTR_TABLE_ROW_HEADER_ID: | 186 case AX_ATTR_TABLE_ROW_HEADER_ID: |
187 result += " row_header_id=" + value; | 187 result += " row_header_id=" + value; |
188 break; | 188 break; |
189 case AX_ATTR_TABLE_ROW_INDEX: | 189 case AX_ATTR_TABLE_ROW_INDEX: |
190 result += " row_index=" + value; | 190 result += " row_index=" + value; |
191 break; | 191 break; |
192 case AX_ATTR_TITLE_UI_ELEMENT: | 192 case AX_ATTR_TITLE_UI_ELEMENT: |
193 result += " title_elem=" + value; | 193 result += " title_elem=" + value; |
194 break; | 194 break; |
| 195 case AX_ATTR_ACTIVEDESCENDANT_ID: |
| 196 result += " activedescendant=" + value; |
| 197 break; |
195 case AX_ATTR_COLOR_VALUE_RED: | 198 case AX_ATTR_COLOR_VALUE_RED: |
196 result += " color_value_red=" + value; | 199 result += " color_value_red=" + value; |
197 break; | 200 break; |
198 case AX_ATTR_COLOR_VALUE_GREEN: | 201 case AX_ATTR_COLOR_VALUE_GREEN: |
199 result += " color_value_green=" + value; | 202 result += " color_value_green=" + value; |
200 break; | 203 break; |
201 case AX_ATTR_COLOR_VALUE_BLUE: | 204 case AX_ATTR_COLOR_VALUE_BLUE: |
202 result += " color_value_blue=" + value; | 205 result += " color_value_blue=" + value; |
203 break; | 206 break; |
204 case AX_ATTR_TEXT_DIRECTION: | 207 case AX_ATTR_TEXT_DIRECTION: |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 break; | 348 break; |
346 } | 349 } |
347 } | 350 } |
348 | 351 |
349 for (size_t i = 0; i < intlist_attributes.size(); ++i) { | 352 for (size_t i = 0; i < intlist_attributes.size(); ++i) { |
350 const std::vector<int32>& values = intlist_attributes[i].second; | 353 const std::vector<int32>& values = intlist_attributes[i].second; |
351 switch (intlist_attributes[i].first) { | 354 switch (intlist_attributes[i].first) { |
352 case AX_ATTR_INDIRECT_CHILD_IDS: | 355 case AX_ATTR_INDIRECT_CHILD_IDS: |
353 result += " indirect_child_ids=" + IntVectorToString(values); | 356 result += " indirect_child_ids=" + IntVectorToString(values); |
354 break; | 357 break; |
| 358 case AX_ATTR_CONTROLS_IDS: |
| 359 result += " controls_ids=" + IntVectorToString(values); |
| 360 break; |
| 361 case AX_ATTR_DESCRIBEDBY_IDS: |
| 362 result += " describedby_ids=" + IntVectorToString(values); |
| 363 break; |
| 364 case AX_ATTR_FLOWTO_IDS: |
| 365 result += " flowto_ids=" + IntVectorToString(values); |
| 366 break; |
| 367 case AX_ATTR_LABELLEDBY_IDS: |
| 368 result += " labelledby_ids=" + IntVectorToString(values); |
| 369 break; |
| 370 case AX_ATTR_OWNS_IDS: |
| 371 result += " owns_ids=" + IntVectorToString(values); |
| 372 break; |
355 case AX_ATTR_LINE_BREAKS: | 373 case AX_ATTR_LINE_BREAKS: |
356 result += " line_breaks=" + IntVectorToString(values); | 374 result += " line_breaks=" + IntVectorToString(values); |
357 break; | 375 break; |
358 case AX_ATTR_CELL_IDS: | 376 case AX_ATTR_CELL_IDS: |
359 result += " cell_ids=" + IntVectorToString(values); | 377 result += " cell_ids=" + IntVectorToString(values); |
360 break; | 378 break; |
361 case AX_ATTR_UNIQUE_CELL_IDS: | 379 case AX_ATTR_UNIQUE_CELL_IDS: |
362 result += " unique_cell_ids=" + IntVectorToString(values); | 380 result += " unique_cell_ids=" + IntVectorToString(values); |
363 break; | 381 break; |
364 case AX_ATTR_CHARACTER_OFFSETS: | 382 case AX_ATTR_CHARACTER_OFFSETS: |
(...skipping 10 matching lines...) Expand all Loading... |
375 } | 393 } |
376 } | 394 } |
377 | 395 |
378 if (!child_ids.empty()) | 396 if (!child_ids.empty()) |
379 result += " child_ids=" + IntVectorToString(child_ids); | 397 result += " child_ids=" + IntVectorToString(child_ids); |
380 | 398 |
381 return result; | 399 return result; |
382 } | 400 } |
383 | 401 |
384 } // namespace ui | 402 } // namespace ui |
OLD | NEW |