| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" | 5 #include "chrome/browser/ui/aura/accessibility/automation_manager_aura.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 current_tree_->SetSelection( | 105 current_tree_->SetSelection( |
| 106 data.anchor_node_id, data.anchor_offset, data.focus_offset); | 106 data.anchor_node_id, data.anchor_offset, data.focus_offset); |
| 107 break; | 107 break; |
| 108 case ui::AX_ACTION_SHOW_CONTEXT_MENU: | 108 case ui::AX_ACTION_SHOW_CONTEXT_MENU: |
| 109 current_tree_->ShowContextMenu(data.target_node_id); | 109 current_tree_->ShowContextMenu(data.target_node_id); |
| 110 break; | 110 break; |
| 111 case ui::AX_ACTION_SET_ACCESSIBILITY_FOCUS: | 111 case ui::AX_ACTION_SET_ACCESSIBILITY_FOCUS: |
| 112 // Sent by ChromeVox but doesn't need to be handled by aura. | 112 // Sent by ChromeVox but doesn't need to be handled by aura. |
| 113 break; | 113 break; |
| 114 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT: |
| 115 // Sent by ChromeVox but doesn't need to be handled by aura. |
| 116 break; |
| 114 case ui::AX_ACTION_HIT_TEST: | 117 case ui::AX_ACTION_HIT_TEST: |
| 115 case ui::AX_ACTION_SCROLL_TO_POINT: | 118 case ui::AX_ACTION_SCROLL_TO_POINT: |
| 116 case ui::AX_ACTION_SET_SCROLL_OFFSET: | 119 case ui::AX_ACTION_SET_SCROLL_OFFSET: |
| 117 case ui::AX_ACTION_SET_VALUE: | 120 case ui::AX_ACTION_SET_VALUE: |
| 118 // Not implemented yet. | 121 // Not implemented yet. |
| 119 NOTREACHED(); | 122 NOTREACHED(); |
| 120 break; | 123 break; |
| 121 case ui::AX_ACTION_NONE: | 124 case ui::AX_ACTION_NONE: |
| 122 NOTREACHED(); | 125 NOTREACHED(); |
| 123 break; | 126 break; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 187 |
| 185 processing_events_ = false; | 188 processing_events_ = false; |
| 186 auto pending_events_copy = pending_events_; | 189 auto pending_events_copy = pending_events_; |
| 187 pending_events_.clear(); | 190 pending_events_.clear(); |
| 188 for (size_t i = 0; i < pending_events_copy.size(); ++i) { | 191 for (size_t i = 0; i < pending_events_copy.size(); ++i) { |
| 189 SendEvent(context, | 192 SendEvent(context, |
| 190 pending_events_copy[i].first, | 193 pending_events_copy[i].first, |
| 191 pending_events_copy[i].second); | 194 pending_events_copy[i].second); |
| 192 } | 195 } |
| 193 } | 196 } |
| OLD | NEW |