| 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 case AX_ATTR_PREVIOUS_ON_LINE_ID: | 442 case AX_ATTR_PREVIOUS_ON_LINE_ID: |
| 443 result += " previous_on_line_id=" + value; | 443 result += " previous_on_line_id=" + value; |
| 444 break; | 444 break; |
| 445 case AX_ATTR_CHILD_TREE_ID: | 445 case AX_ATTR_CHILD_TREE_ID: |
| 446 result += " child_tree_id=" + value; | 446 result += " child_tree_id=" + value; |
| 447 break; | 447 break; |
| 448 case AX_ATTR_COLOR_VALUE: | 448 case AX_ATTR_COLOR_VALUE: |
| 449 result += base::StringPrintf(" color_value=&%X", | 449 result += base::StringPrintf(" color_value=&%X", |
| 450 int_attributes[i].second); | 450 int_attributes[i].second); |
| 451 break; | 451 break; |
| 452 case AX_ATTR_ARIA_CURRENT_STATE: |
| 453 switch (int_attributes[i].second) { |
| 454 case AX_ARIA_CURRENT_STATE_FALSE: |
| 455 result += " aria_current_state=false"; |
| 456 break; |
| 457 case AX_ARIA_CURRENT_STATE_TRUE: |
| 458 result += " aria_current_state=true"; |
| 459 break; |
| 460 case AX_ARIA_CURRENT_STATE_PAGE: |
| 461 result += " aria_current_state=page"; |
| 462 break; |
| 463 case AX_ARIA_CURRENT_STATE_STEP: |
| 464 result += " aria_current_state=step"; |
| 465 break; |
| 466 case AX_ARIA_CURRENT_STATE_LOCATION: |
| 467 result += " aria_current_state=location"; |
| 468 break; |
| 469 case AX_ARIA_CURRENT_STATE_DATE: |
| 470 result += " aria_current_state=date"; |
| 471 break; |
| 472 case AX_ARIA_CURRENT_STATE_TIME: |
| 473 result += " aria_current_state=time"; |
| 474 break; |
| 475 } |
| 476 break; |
| 452 case AX_ATTR_BACKGROUND_COLOR: | 477 case AX_ATTR_BACKGROUND_COLOR: |
| 453 result += base::StringPrintf(" background_color=&%X", | 478 result += base::StringPrintf(" background_color=&%X", |
| 454 int_attributes[i].second); | 479 int_attributes[i].second); |
| 455 break; | 480 break; |
| 456 case AX_ATTR_COLOR: | 481 case AX_ATTR_COLOR: |
| 457 result += base::StringPrintf(" color=&%X", int_attributes[i].second); | 482 result += base::StringPrintf(" color=&%X", int_attributes[i].second); |
| 458 break; | 483 break; |
| 459 case AX_ATTR_TEXT_DIRECTION: | 484 case AX_ATTR_TEXT_DIRECTION: |
| 460 switch (int_attributes[i].second) { | 485 switch (int_attributes[i].second) { |
| 461 case AX_TEXT_DIRECTION_LTR: | 486 case AX_TEXT_DIRECTION_LTR: |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 704 } |
| 680 } | 705 } |
| 681 | 706 |
| 682 if (!child_ids.empty()) | 707 if (!child_ids.empty()) |
| 683 result += " child_ids=" + IntVectorToString(child_ids); | 708 result += " child_ids=" + IntVectorToString(child_ids); |
| 684 | 709 |
| 685 return result; | 710 return result; |
| 686 } | 711 } |
| 687 | 712 |
| 688 } // namespace ui | 713 } // namespace ui |
| OLD | NEW |