| 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 result += " name_from=" + ui::ToString( | 429 result += " name_from=" + ui::ToString( |
| 430 static_cast<ui::AXNameFrom>(int_attributes[i].second)); | 430 static_cast<ui::AXNameFrom>(int_attributes[i].second)); |
| 431 break; | 431 break; |
| 432 case AX_ATTR_DESCRIPTION_FROM: | 432 case AX_ATTR_DESCRIPTION_FROM: |
| 433 result += " description_from=" + ui::ToString( | 433 result += " description_from=" + ui::ToString( |
| 434 static_cast<ui::AXDescriptionFrom>(int_attributes[i].second)); | 434 static_cast<ui::AXDescriptionFrom>(int_attributes[i].second)); |
| 435 break; | 435 break; |
| 436 case AX_ATTR_ACTIVEDESCENDANT_ID: | 436 case AX_ATTR_ACTIVEDESCENDANT_ID: |
| 437 result += " activedescendant=" + value; | 437 result += " activedescendant=" + value; |
| 438 break; | 438 break; |
| 439 case AX_ATTR_NEXT_ON_LINE_ID: |
| 440 result += " next_on_line_id=" + value; |
| 441 break; |
| 442 case AX_ATTR_PREVIOUS_ON_LINE_ID: |
| 443 result += " previous_on_line_id=" + value; |
| 444 break; |
| 439 case AX_ATTR_CHILD_TREE_ID: | 445 case AX_ATTR_CHILD_TREE_ID: |
| 440 result += " child_tree_id=" + value; | 446 result += " child_tree_id=" + value; |
| 441 break; | 447 break; |
| 442 case AX_ATTR_COLOR_VALUE: | 448 case AX_ATTR_COLOR_VALUE: |
| 443 result += base::StringPrintf(" color_value=&%X", | 449 result += base::StringPrintf(" color_value=&%X", |
| 444 int_attributes[i].second); | 450 int_attributes[i].second); |
| 445 break; | 451 break; |
| 446 case AX_ATTR_BACKGROUND_COLOR: | 452 case AX_ATTR_BACKGROUND_COLOR: |
| 447 result += base::StringPrintf(" background_color=&%X", | 453 result += base::StringPrintf(" background_color=&%X", |
| 448 int_attributes[i].second); | 454 int_attributes[i].second); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 bool AXNodeData::IsRoot() const { | 688 bool AXNodeData::IsRoot() const { |
| 683 return (role == AX_ROLE_ROOT_WEB_AREA || | 689 return (role == AX_ROLE_ROOT_WEB_AREA || |
| 684 role == AX_ROLE_DESKTOP); | 690 role == AX_ROLE_DESKTOP); |
| 685 } | 691 } |
| 686 | 692 |
| 687 void AXNodeData::SetRoot() { | 693 void AXNodeData::SetRoot() { |
| 688 role = AX_ROLE_ROOT_WEB_AREA; | 694 role = AX_ROLE_ROOT_WEB_AREA; |
| 689 } | 695 } |
| 690 | 696 |
| 691 } // namespace ui | 697 } // namespace ui |
| OLD | NEW |