| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/accessibility/render_accessibility_impl.h" | 5 #include "content/renderer/accessibility/render_accessibility_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 target.setFocused(true); | 475 target.setFocused(true); |
| 476 break; | 476 break; |
| 477 case ui::AX_ACTION_SET_SCROLL_OFFSET: | 477 case ui::AX_ACTION_SET_SCROLL_OFFSET: |
| 478 target.setScrollOffset( | 478 target.setScrollOffset( |
| 479 WebPoint(data.target_point.x(), data.target_point.y())); | 479 WebPoint(data.target_point.x(), data.target_point.y())); |
| 480 break; | 480 break; |
| 481 case ui::AX_ACTION_SET_SELECTION: | 481 case ui::AX_ACTION_SET_SELECTION: |
| 482 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset); | 482 anchor.setSelection(anchor, data.anchor_offset, focus, data.focus_offset); |
| 483 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE); | 483 HandleAXEvent(root, ui::AX_EVENT_LAYOUT_COMPLETE); |
| 484 break; | 484 break; |
| 485 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: |
| 486 target.setSequentialFocusNavigationStartingPoint(); |
| 487 break; |
| 485 case ui::AX_ACTION_SET_VALUE: | 488 case ui::AX_ACTION_SET_VALUE: |
| 486 target.setValue(data.value); | 489 target.setValue(data.value); |
| 487 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); | 490 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); |
| 488 break; | 491 break; |
| 489 case ui::AX_ACTION_SHOW_CONTEXT_MENU: | 492 case ui::AX_ACTION_SHOW_CONTEXT_MENU: |
| 490 target.showContextMenu(); | 493 target.showContextMenu(); |
| 491 break; | 494 break; |
| 492 case ui::AX_ACTION_NONE: | 495 case ui::AX_ACTION_NONE: |
| 493 NOTREACHED(); | 496 NOTREACHED(); |
| 494 break; | 497 break; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 | 626 |
| 624 const WebDocument& document = GetMainDocument(); | 627 const WebDocument& document = GetMainDocument(); |
| 625 if (document.isNull()) | 628 if (document.isNull()) |
| 626 return; | 629 return; |
| 627 | 630 |
| 628 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( | 631 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( |
| 629 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 632 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
| 630 } | 633 } |
| 631 | 634 |
| 632 } // namespace content | 635 } // namespace content |
| OLD | NEW |