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