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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
385 | 385 |
386 if (offset_container_id != -1) | 386 if (offset_container_id != -1) |
387 result += " offset_container_id=" + IntToString(offset_container_id); | 387 result += " offset_container_id=" + IntToString(offset_container_id); |
388 | 388 |
389 if (transform && !transform->IsIdentity()) | 389 if (transform && !transform->IsIdentity()) |
390 result += " transform=" + transform->ToString(); | 390 result += " transform=" + transform->ToString(); |
391 | 391 |
392 for (size_t i = 0; i < int_attributes.size(); ++i) { | 392 for (size_t i = 0; i < int_attributes.size(); ++i) { |
393 std::string value = IntToString(int_attributes[i].second); | 393 std::string value = IntToString(int_attributes[i].second); |
394 switch (int_attributes[i].first) { | 394 switch (int_attributes[i].first) { |
395 case AX_ATTR_ACTION: | |
396 result += " action=" + value; | |
dmazzoni
2016/11/29 16:28:11
Please print this as a string, something like
ui:
| |
397 break; | |
395 case AX_ATTR_SCROLL_X: | 398 case AX_ATTR_SCROLL_X: |
396 result += " scroll_x=" + value; | 399 result += " scroll_x=" + value; |
397 break; | 400 break; |
398 case AX_ATTR_SCROLL_X_MIN: | 401 case AX_ATTR_SCROLL_X_MIN: |
399 result += " scroll_x_min=" + value; | 402 result += " scroll_x_min=" + value; |
400 break; | 403 break; |
401 case AX_ATTR_SCROLL_X_MAX: | 404 case AX_ATTR_SCROLL_X_MAX: |
402 result += " scroll_x_max=" + value; | 405 result += " scroll_x_max=" + value; |
403 break; | 406 break; |
404 case AX_ATTR_SCROLL_Y: | 407 case AX_ATTR_SCROLL_Y: |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
588 break; | 591 break; |
589 } | 592 } |
590 } | 593 } |
591 | 594 |
592 for (size_t i = 0; i < string_attributes.size(); ++i) { | 595 for (size_t i = 0; i < string_attributes.size(); ++i) { |
593 std::string value = string_attributes[i].second; | 596 std::string value = string_attributes[i].second; |
594 switch (string_attributes[i].first) { | 597 switch (string_attributes[i].first) { |
595 case AX_ATTR_ACCESS_KEY: | 598 case AX_ATTR_ACCESS_KEY: |
596 result += " access_key=" + value; | 599 result += " access_key=" + value; |
597 break; | 600 break; |
598 case AX_ATTR_ACTION: | |
599 result += " action=" + value; | |
600 break; | |
601 case AX_ATTR_ARIA_INVALID_VALUE: | 601 case AX_ATTR_ARIA_INVALID_VALUE: |
602 result += " aria_invalid_value=" + value; | 602 result += " aria_invalid_value=" + value; |
603 break; | 603 break; |
604 case AX_ATTR_AUTO_COMPLETE: | 604 case AX_ATTR_AUTO_COMPLETE: |
605 result += " autocomplete=" + value; | 605 result += " autocomplete=" + value; |
606 break; | 606 break; |
607 case AX_ATTR_DESCRIPTION: | 607 case AX_ATTR_DESCRIPTION: |
608 result += " description=" + value; | 608 result += " description=" + value; |
609 break; | 609 break; |
610 case AX_ATTR_DISPLAY: | 610 case AX_ATTR_DISPLAY: |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
781 } | 781 } |
782 } | 782 } |
783 | 783 |
784 if (!child_ids.empty()) | 784 if (!child_ids.empty()) |
785 result += " child_ids=" + IntVectorToString(child_ids); | 785 result += " child_ids=" + IntVectorToString(child_ids); |
786 | 786 |
787 return result; | 787 return result; |
788 } | 788 } |
789 | 789 |
790 } // namespace ui | 790 } // namespace ui |
OLD | NEW |