| 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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 508 target.setSequentialFocusNavigationStartingPoint(); | 508 target.setSequentialFocusNavigationStartingPoint(); |
| 509 break; | 509 break; |
| 510 case ui::AX_ACTION_SET_VALUE: | 510 case ui::AX_ACTION_SET_VALUE: |
| 511 target.setValue(blink::WebString::fromUTF16(data.value)); | 511 target.setValue(blink::WebString::fromUTF16(data.value)); |
| 512 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); | 512 HandleAXEvent(target, ui::AX_EVENT_VALUE_CHANGED); |
| 513 break; | 513 break; |
| 514 case ui::AX_ACTION_SHOW_CONTEXT_MENU: | 514 case ui::AX_ACTION_SHOW_CONTEXT_MENU: |
| 515 target.showContextMenu(); | 515 target.showContextMenu(); |
| 516 break; | 516 break; |
| 517 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: | 517 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: |
| 518 case ui::AX_ACTION_TOGGLE_DARKEN_SCREEN: |
| 518 case ui::AX_ACTION_NONE: | 519 case ui::AX_ACTION_NONE: |
| 519 NOTREACHED(); | 520 NOTREACHED(); |
| 520 break; | 521 break; |
| 521 } | 522 } |
| 522 } | 523 } |
| 523 | 524 |
| 524 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { | 525 void RenderAccessibilityImpl::OnEventsAck(int ack_token) { |
| 525 // Ignore acks intended for a different or previous instance. | 526 // Ignore acks intended for a different or previous instance. |
| 526 if (ack_token_ != ack_token) | 527 if (ack_token_ != ack_token) |
| 527 return; | 528 return; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 | 667 |
| 667 const WebDocument& document = GetMainDocument(); | 668 const WebDocument& document = GetMainDocument(); |
| 668 if (document.isNull()) | 669 if (document.isNull()) |
| 669 return; | 670 return; |
| 670 | 671 |
| 671 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( | 672 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( |
| 672 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 673 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
| 673 } | 674 } |
| 674 | 675 |
| 675 } // namespace content | 676 } // namespace content |
| OLD | NEW |