| 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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: | 556 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: |
| 557 target.SetSequentialFocusNavigationStartingPoint(); | 557 target.SetSequentialFocusNavigationStartingPoint(); |
| 558 break; | 558 break; |
| 559 case ui::AX_ACTION_SET_VALUE: | 559 case ui::AX_ACTION_SET_VALUE: |
| 560 target.SetValue(blink::WebString::FromUTF16(data.value)); | 560 target.SetValue(blink::WebString::FromUTF16(data.value)); |
| 561 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); | 561 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); |
| 562 break; | 562 break; |
| 563 case ui::AX_ACTION_SHOW_CONTEXT_MENU: | 563 case ui::AX_ACTION_SHOW_CONTEXT_MENU: |
| 564 target.ShowContextMenu(); | 564 target.ShowContextMenu(); |
| 565 break; | 565 break; |
| 566 case ui::AX_ACTION_CUSTOM_ACTION: |
| 566 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: | 567 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: |
| 567 case ui::AX_ACTION_NONE: | 568 case ui::AX_ACTION_NONE: |
| 568 NOTREACHED(); | 569 NOTREACHED(); |
| 569 break; | 570 break; |
| 570 } | 571 } |
| 571 } | 572 } |
| 572 | 573 |
| 573 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { | 574 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { |
| 574 // Ignore acks intended for a different or previous instance. | 575 // Ignore acks intended for a different or previous instance. |
| 575 if (ack_token_ != ack_token) | 576 if (ack_token_ != ack_token) |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 | 718 |
| 718 const WebDocument& document = GetMainDocument(); | 719 const WebDocument& document = GetMainDocument(); |
| 719 if (document.IsNull()) | 720 if (document.IsNull()) |
| 720 return; | 721 return; |
| 721 | 722 |
| 722 document.AccessibilityObject().ScrollToMakeVisibleWithSubFocus( | 723 document.AccessibilityObject().ScrollToMakeVisibleWithSubFocus( |
| 723 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 724 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
| 724 } | 725 } |
| 725 | 726 |
| 726 } // namespace content | 727 } // namespace content |
| OLD | NEW |