| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 case AX_ATTR_SET_SIZE: | 103 case AX_ATTR_SET_SIZE: |
| 104 case AX_ATTR_POS_IN_SET: | 104 case AX_ATTR_POS_IN_SET: |
| 105 case AX_ATTR_COLOR_VALUE: | 105 case AX_ATTR_COLOR_VALUE: |
| 106 case AX_ATTR_ARIA_CURRENT_STATE: | 106 case AX_ATTR_ARIA_CURRENT_STATE: |
| 107 case AX_ATTR_BACKGROUND_COLOR: | 107 case AX_ATTR_BACKGROUND_COLOR: |
| 108 case AX_ATTR_COLOR: | 108 case AX_ATTR_COLOR: |
| 109 case AX_ATTR_INVALID_STATE: | 109 case AX_ATTR_INVALID_STATE: |
| 110 case AX_ATTR_CHECKED_STATE: | 110 case AX_ATTR_CHECKED_STATE: |
| 111 case AX_ATTR_TEXT_DIRECTION: | 111 case AX_ATTR_TEXT_DIRECTION: |
| 112 case AX_ATTR_TEXT_STYLE: | 112 case AX_ATTR_TEXT_STYLE: |
| 113 case AX_ATTR_ARIA_COL_COUNT: | 113 case AX_ATTR_ARIA_COLUMN_COUNT: |
| 114 case AX_ATTR_ARIA_COL_INDEX: | 114 case AX_ATTR_ARIA_CELL_COLUMN_INDEX: |
| 115 case AX_ATTR_ARIA_ROW_COUNT: | 115 case AX_ATTR_ARIA_ROW_COUNT: |
| 116 case AX_ATTR_ARIA_ROW_INDEX: | 116 case AX_ATTR_ARIA_CELL_ROW_INDEX: |
| 117 return false; | 117 return false; |
| 118 } | 118 } |
| 119 | 119 |
| 120 NOTREACHED(); | 120 NOTREACHED(); |
| 121 return false; | 121 return false; |
| 122 } | 122 } |
| 123 | 123 |
| 124 // Return true if |attr| contains a vector of node ids that would need | 124 // Return true if |attr| contains a vector of node ids that would need |
| 125 // to be mapped when renumbering the ids in a combined tree. | 125 // to be mapped when renumbering the ids in a combined tree. |
| 126 bool IsNodeIdIntListAttribute(AXIntListAttribute attr) { | 126 bool IsNodeIdIntListAttribute(AXIntListAttribute attr) { |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 break; | 517 break; |
| 518 case AX_ATTR_HIERARCHICAL_LEVEL: | 518 case AX_ATTR_HIERARCHICAL_LEVEL: |
| 519 result += " level=" + value; | 519 result += " level=" + value; |
| 520 break; | 520 break; |
| 521 case AX_ATTR_TEXT_SEL_START: | 521 case AX_ATTR_TEXT_SEL_START: |
| 522 result += " sel_start=" + value; | 522 result += " sel_start=" + value; |
| 523 break; | 523 break; |
| 524 case AX_ATTR_TEXT_SEL_END: | 524 case AX_ATTR_TEXT_SEL_END: |
| 525 result += " sel_end=" + value; | 525 result += " sel_end=" + value; |
| 526 break; | 526 break; |
| 527 case AX_ATTR_ARIA_COL_COUNT: | 527 case AX_ATTR_ARIA_COLUMN_COUNT: |
| 528 result += " aria_col_count=" + value; | 528 result += " aria_column_count=" + value; |
| 529 break; | 529 break; |
| 530 case AX_ATTR_ARIA_COL_INDEX: | 530 case AX_ATTR_ARIA_CELL_COLUMN_INDEX: |
| 531 result += " aria_col_index=" + value; | 531 result += " aria_cell_column_index=" + value; |
| 532 break; | 532 break; |
| 533 case AX_ATTR_ARIA_ROW_COUNT: | 533 case AX_ATTR_ARIA_ROW_COUNT: |
| 534 result += " aria_row_count=" + value; | 534 result += " aria_row_count=" + value; |
| 535 break; | 535 break; |
| 536 case AX_ATTR_ARIA_ROW_INDEX: | 536 case AX_ATTR_ARIA_CELL_ROW_INDEX: |
| 537 result += " aria_row_index=" + value; | 537 result += " aria_cell_row_index=" + value; |
| 538 break; | 538 break; |
| 539 case AX_ATTR_TABLE_ROW_COUNT: | 539 case AX_ATTR_TABLE_ROW_COUNT: |
| 540 result += " rows=" + value; | 540 result += " rows=" + value; |
| 541 break; | 541 break; |
| 542 case AX_ATTR_TABLE_COLUMN_COUNT: | 542 case AX_ATTR_TABLE_COLUMN_COUNT: |
| 543 result += " cols=" + value; | 543 result += " cols=" + value; |
| 544 break; | 544 break; |
| 545 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: | 545 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: |
| 546 result += " col=" + value; | 546 result += " col=" + value; |
| 547 break; | 547 break; |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 } | 941 } |
| 942 } | 942 } |
| 943 | 943 |
| 944 if (!child_ids.empty()) | 944 if (!child_ids.empty()) |
| 945 result += " child_ids=" + IntVectorToString(child_ids); | 945 result += " child_ids=" + IntVectorToString(child_ids); |
| 946 | 946 |
| 947 return result; | 947 return result; |
| 948 } | 948 } |
| 949 | 949 |
| 950 } // namespace ui | 950 } // namespace ui |
| OLD | NEW |