| 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 break; | 376 break; |
| 377 case AX_ATTR_UPDATE_LOCATION_ONLY: | 377 case AX_ATTR_UPDATE_LOCATION_ONLY: |
| 378 result += " update_location_only=" + value; | 378 result += " update_location_only=" + value; |
| 379 break; | 379 break; |
| 380 case AX_ATTR_CANVAS_HAS_FALLBACK: | 380 case AX_ATTR_CANVAS_HAS_FALLBACK: |
| 381 result += " has_fallback=" + value; | 381 result += " has_fallback=" + value; |
| 382 break; | 382 break; |
| 383 case AX_ATTR_IS_AX_TREE_HOST: | 383 case AX_ATTR_IS_AX_TREE_HOST: |
| 384 result += " is_ax_tree_host=" + value; | 384 result += " is_ax_tree_host=" + value; |
| 385 break; | 385 break; |
| 386 case AX_ATTR_GRABBED: |
| 387 result += " grabbed=" + value; |
| 388 break; |
| 386 case AX_BOOL_ATTRIBUTE_NONE: | 389 case AX_BOOL_ATTRIBUTE_NONE: |
| 387 break; | 390 break; |
| 388 } | 391 } |
| 389 } | 392 } |
| 390 | 393 |
| 391 for (size_t i = 0; i < intlist_attributes.size(); ++i) { | 394 for (size_t i = 0; i < intlist_attributes.size(); ++i) { |
| 392 const std::vector<int32>& values = intlist_attributes[i].second; | 395 const std::vector<int32>& values = intlist_attributes[i].second; |
| 393 switch (intlist_attributes[i].first) { | 396 switch (intlist_attributes[i].first) { |
| 394 case AX_ATTR_INDIRECT_CHILD_IDS: | 397 case AX_ATTR_INDIRECT_CHILD_IDS: |
| 395 result += " indirect_child_ids=" + IntVectorToString(values); | 398 result += " indirect_child_ids=" + IntVectorToString(values); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 } | 435 } |
| 433 } | 436 } |
| 434 | 437 |
| 435 if (!child_ids.empty()) | 438 if (!child_ids.empty()) |
| 436 result += " child_ids=" + IntVectorToString(child_ids); | 439 result += " child_ids=" + IntVectorToString(child_ids); |
| 437 | 440 |
| 438 return result; | 441 return result; |
| 439 } | 442 } |
| 440 | 443 |
| 441 } // namespace ui | 444 } // namespace ui |
| OLD | NEW |