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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 case AX_ATTR_CHILD_TREE_ID: | 102 case AX_ATTR_CHILD_TREE_ID: |
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_TEXT_DIRECTION: | 110 case AX_ATTR_TEXT_DIRECTION: |
111 case AX_ATTR_TEXT_STYLE: | 111 case AX_ATTR_TEXT_STYLE: |
112 case AX_ATTR_ARIA_COL_COUNT: | 112 case AX_ATTR_ARIA_COLUMN_COUNT: |
113 case AX_ATTR_ARIA_COL_INDEX: | 113 case AX_ATTR_ARIA_CELL_COLUMN_INDEX: |
114 case AX_ATTR_ARIA_ROW_COUNT: | 114 case AX_ATTR_ARIA_ROW_COUNT: |
115 case AX_ATTR_ARIA_ROW_INDEX: | 115 case AX_ATTR_ARIA_CELL_ROW_INDEX: |
116 return false; | 116 return false; |
117 } | 117 } |
118 | 118 |
119 NOTREACHED(); | 119 NOTREACHED(); |
120 return false; | 120 return false; |
121 } | 121 } |
122 | 122 |
123 // Return true if |attr| contains a vector of node ids that would need | 123 // Return true if |attr| contains a vector of node ids that would need |
124 // to be mapped when renumbering the ids in a combined tree. | 124 // to be mapped when renumbering the ids in a combined tree. |
125 bool IsNodeIdIntListAttribute(AXIntListAttribute attr) { | 125 bool IsNodeIdIntListAttribute(AXIntListAttribute attr) { |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 break; | 518 break; |
519 case AX_ATTR_HIERARCHICAL_LEVEL: | 519 case AX_ATTR_HIERARCHICAL_LEVEL: |
520 result += " level=" + value; | 520 result += " level=" + value; |
521 break; | 521 break; |
522 case AX_ATTR_TEXT_SEL_START: | 522 case AX_ATTR_TEXT_SEL_START: |
523 result += " sel_start=" + value; | 523 result += " sel_start=" + value; |
524 break; | 524 break; |
525 case AX_ATTR_TEXT_SEL_END: | 525 case AX_ATTR_TEXT_SEL_END: |
526 result += " sel_end=" + value; | 526 result += " sel_end=" + value; |
527 break; | 527 break; |
528 case AX_ATTR_ARIA_COL_COUNT: | 528 case AX_ATTR_ARIA_COLUMN_COUNT: |
529 result += " aria_col_count=" + value; | 529 result += " aria_column_count=" + value; |
530 break; | 530 break; |
531 case AX_ATTR_ARIA_COL_INDEX: | 531 case AX_ATTR_ARIA_CELL_COLUMN_INDEX: |
532 result += " aria_col_index=" + value; | 532 result += " aria_cell_column_index=" + value; |
533 break; | 533 break; |
534 case AX_ATTR_ARIA_ROW_COUNT: | 534 case AX_ATTR_ARIA_ROW_COUNT: |
535 result += " aria_row_count=" + value; | 535 result += " aria_row_count=" + value; |
536 break; | 536 break; |
537 case AX_ATTR_ARIA_ROW_INDEX: | 537 case AX_ATTR_ARIA_CELL_ROW_INDEX: |
538 result += " aria_row_index=" + value; | 538 result += " aria_cell_row_index=" + value; |
539 break; | 539 break; |
540 case AX_ATTR_TABLE_ROW_COUNT: | 540 case AX_ATTR_TABLE_ROW_COUNT: |
541 result += " rows=" + value; | 541 result += " rows=" + value; |
542 break; | 542 break; |
543 case AX_ATTR_TABLE_COLUMN_COUNT: | 543 case AX_ATTR_TABLE_COLUMN_COUNT: |
544 result += " cols=" + value; | 544 result += " cols=" + value; |
545 break; | 545 break; |
546 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: | 546 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: |
547 result += " col=" + value; | 547 result += " col=" + value; |
548 break; | 548 break; |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 } | 932 } |
933 } | 933 } |
934 | 934 |
935 if (!child_ids.empty()) | 935 if (!child_ids.empty()) |
936 result += " child_ids=" + IntVectorToString(child_ids); | 936 result += " child_ids=" + IntVectorToString(child_ids); |
937 | 937 |
938 return result; | 938 return result; |
939 } | 939 } |
940 | 940 |
941 } // namespace ui | 941 } // namespace ui |
OLD | NEW |