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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 break; | 336 break; |
337 case AX_ATTR_CAN_SET_VALUE: | 337 case AX_ATTR_CAN_SET_VALUE: |
338 result += " can_set_value=" + value; | 338 result += " can_set_value=" + value; |
339 break; | 339 break; |
340 case AX_ATTR_UPDATE_LOCATION_ONLY: | 340 case AX_ATTR_UPDATE_LOCATION_ONLY: |
341 result += " update_location_only=" + value; | 341 result += " update_location_only=" + value; |
342 break; | 342 break; |
343 case AX_ATTR_CANVAS_HAS_FALLBACK: | 343 case AX_ATTR_CANVAS_HAS_FALLBACK: |
344 result += " has_fallback=" + value; | 344 result += " has_fallback=" + value; |
345 break; | 345 break; |
| 346 case AX_ATTR_IS_AX_TREE_HOST: |
| 347 result += " is_ax_tree_host=" + value; |
| 348 break; |
346 case AX_BOOL_ATTRIBUTE_NONE: | 349 case AX_BOOL_ATTRIBUTE_NONE: |
347 break; | 350 break; |
348 } | 351 } |
349 } | 352 } |
350 | 353 |
351 for (size_t i = 0; i < intlist_attributes.size(); ++i) { | 354 for (size_t i = 0; i < intlist_attributes.size(); ++i) { |
352 const std::vector<int32>& values = intlist_attributes[i].second; | 355 const std::vector<int32>& values = intlist_attributes[i].second; |
353 switch (intlist_attributes[i].first) { | 356 switch (intlist_attributes[i].first) { |
354 case AX_ATTR_INDIRECT_CHILD_IDS: | 357 case AX_ATTR_INDIRECT_CHILD_IDS: |
355 result += " indirect_child_ids=" + IntVectorToString(values); | 358 result += " indirect_child_ids=" + IntVectorToString(values); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 395 } |
393 } | 396 } |
394 | 397 |
395 if (!child_ids.empty()) | 398 if (!child_ids.empty()) |
396 result += " child_ids=" + IntVectorToString(child_ids); | 399 result += " child_ids=" + IntVectorToString(child_ids); |
397 | 400 |
398 return result; | 401 return result; |
399 } | 402 } |
400 | 403 |
401 } // namespace ui | 404 } // namespace ui |
OLD | NEW |