| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 break; | 332 break; |
| 333 case AX_ATTR_HIERARCHICAL_LEVEL: | 333 case AX_ATTR_HIERARCHICAL_LEVEL: |
| 334 result += " level=" + value; | 334 result += " level=" + value; |
| 335 break; | 335 break; |
| 336 case AX_ATTR_TEXT_SEL_START: | 336 case AX_ATTR_TEXT_SEL_START: |
| 337 result += " sel_start=" + value; | 337 result += " sel_start=" + value; |
| 338 break; | 338 break; |
| 339 case AX_ATTR_TEXT_SEL_END: | 339 case AX_ATTR_TEXT_SEL_END: |
| 340 result += " sel_end=" + value; | 340 result += " sel_end=" + value; |
| 341 break; | 341 break; |
| 342 case AX_ATTR_ARIA_COL_COUNT: |
| 343 result += " aria_col_count=" + value; |
| 344 break; |
| 345 case AX_ATTR_ARIA_COL_INDEX: |
| 346 result += " aria_col_index=" + value; |
| 347 break; |
| 348 case AX_ATTR_ARIA_ROW_COUNT: |
| 349 result += " aria_row_count=" + value; |
| 350 break; |
| 351 case AX_ATTR_ARIA_ROW_INDEX: |
| 352 result += " aria_row_index=" + value; |
| 353 break; |
| 342 case AX_ATTR_TABLE_ROW_COUNT: | 354 case AX_ATTR_TABLE_ROW_COUNT: |
| 343 result += " rows=" + value; | 355 result += " rows=" + value; |
| 344 break; | 356 break; |
| 345 case AX_ATTR_TABLE_COLUMN_COUNT: | 357 case AX_ATTR_TABLE_COLUMN_COUNT: |
| 346 result += " cols=" + value; | 358 result += " cols=" + value; |
| 347 break; | 359 break; |
| 348 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: | 360 case AX_ATTR_TABLE_CELL_COLUMN_INDEX: |
| 349 result += " col=" + value; | 361 result += " col=" + value; |
| 350 break; | 362 break; |
| 351 case AX_ATTR_TABLE_CELL_ROW_INDEX: | 363 case AX_ATTR_TABLE_CELL_ROW_INDEX: |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 bool AXNodeData::IsRoot() const { | 650 bool AXNodeData::IsRoot() const { |
| 639 return (role == AX_ROLE_ROOT_WEB_AREA || | 651 return (role == AX_ROLE_ROOT_WEB_AREA || |
| 640 role == AX_ROLE_DESKTOP); | 652 role == AX_ROLE_DESKTOP); |
| 641 } | 653 } |
| 642 | 654 |
| 643 void AXNodeData::SetRoot() { | 655 void AXNodeData::SetRoot() { |
| 644 role = AX_ROLE_ROOT_WEB_AREA; | 656 role = AX_ROLE_ROOT_WEB_AREA; |
| 645 } | 657 } |
| 646 | 658 |
| 647 } // namespace ui | 659 } // namespace ui |
| OLD | NEW |