| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: | 487 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: |
| 488 target.setSequentialFocusNavigationStartingPoint(); | 488 target.setSequentialFocusNavigationStartingPoint(); |
| 489 break; | 489 break; |
| 490 case ui::AX_ACTION_SET_VALUE: | 490 case ui::AX_ACTION_SET_VALUE: |
| 491 target.setValue(data.value); | 491 target.setValue(data.value); |
| 492 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); | 492 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); |
| 493 break; | 493 break; |
| 494 case ui::AX_ACTION_SHOW_CONTEXT_MENU: | 494 case ui::AX_ACTION_SHOW_CONTEXT_MENU: |
| 495 target.showContextMenu(); | 495 target.showContextMenu(); |
| 496 break; | 496 break; |
| 497 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: |
| 497 case ui::AX_ACTION_NONE: | 498 case ui::AX_ACTION_NONE: |
| 498 NOTREACHED(); | 499 NOTREACHED(); |
| 499 break; | 500 break; |
| 500 } | 501 } |
| 501 } | 502 } |
| 502 | 503 |
| 503 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { | 504 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { |
| 504 // Ignore acks intended for a different or previous instance. | 505 // Ignore acks intended for a different or previous instance. |
| 505 if (ack_token_ != ack_token) | 506 if (ack_token_ != ack_token) |
| 506 return; | 507 return; |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 | 629 |
| 629 const WebDocument& document = GetMainDocument(); | 630 const WebDocument& document = GetMainDocument(); |
| 630 if (document.isNull()) | 631 if (document.isNull()) |
| 631 return; | 632 return; |
| 632 | 633 |
| 633 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( | 634 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( |
| 634 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 635 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
| 635 } | 636 } |
| 636 | 637 |
| 637 } // namespace content | 638 } // namespace content |
| OLD | NEW |