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 <set> | 7 #include <set> |
8 | 8 |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 break; | 323 break; |
324 case AX_ATTR_SCROLL_Y_MIN: | 324 case AX_ATTR_SCROLL_Y_MIN: |
325 result += " scroll_y_min=" + value; | 325 result += " scroll_y_min=" + value; |
326 break; | 326 break; |
327 case AX_ATTR_SCROLL_Y_MAX: | 327 case AX_ATTR_SCROLL_Y_MAX: |
328 result += " scroll_y_max=" + value; | 328 result += " scroll_y_max=" + value; |
329 break; | 329 break; |
330 case AX_ATTR_HIERARCHICAL_LEVEL: | 330 case AX_ATTR_HIERARCHICAL_LEVEL: |
331 result += " level=" + value; | 331 result += " level=" + value; |
332 break; | 332 break; |
| 333 case AX_ATTR_ANCHOR_OBJECT_ID: |
| 334 result += " anchor_object_id=" + value; |
| 335 break; |
| 336 case AX_ATTR_ANCHOR_OFFSET: |
| 337 result += " anchor_offset=" + value; |
| 338 break; |
| 339 case AX_ATTR_FOCUS_OBJECT_ID: |
| 340 result += " focus_object_id=" + value; |
| 341 break; |
| 342 case AX_ATTR_FOCUS_OFFSET: |
| 343 result += " focus_offset=" + value; |
| 344 break; |
333 case AX_ATTR_TEXT_SEL_START: | 345 case AX_ATTR_TEXT_SEL_START: |
334 result += " sel_start=" + value; | 346 result += " sel_start=" + value; |
335 break; | 347 break; |
336 case AX_ATTR_TEXT_SEL_END: | 348 case AX_ATTR_TEXT_SEL_END: |
337 result += " sel_end=" + value; | 349 result += " sel_end=" + value; |
338 break; | 350 break; |
339 case AX_ATTR_TABLE_ROW_COUNT: | 351 case AX_ATTR_TABLE_ROW_COUNT: |
340 result += " rows=" + value; | 352 result += " rows=" + value; |
341 break; | 353 break; |
342 case AX_ATTR_TABLE_COLUMN_COUNT: | 354 case AX_ATTR_TABLE_COLUMN_COUNT: |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 bool AXNodeData::IsRoot() const { | 672 bool AXNodeData::IsRoot() const { |
661 return (role == AX_ROLE_ROOT_WEB_AREA || | 673 return (role == AX_ROLE_ROOT_WEB_AREA || |
662 role == AX_ROLE_DESKTOP); | 674 role == AX_ROLE_DESKTOP); |
663 } | 675 } |
664 | 676 |
665 void AXNodeData::SetRoot() { | 677 void AXNodeData::SetRoot() { |
666 role = AX_ROLE_ROOT_WEB_AREA; | 678 role = AX_ROLE_ROOT_WEB_AREA; |
667 } | 679 } |
668 | 680 |
669 } // namespace ui | 681 } // namespace ui |
OLD | NEW |