Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chrome/browser/ui/aura/accessibility/automation_manager_aura.cc

Issue 2447013009: Implement Increment and Decrement accessible actions (Closed)
Patch Set: Change to make test pass on Android Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_action_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
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: 114 case ui::AX_ACTION_SET_SEQUENTIAL_FOCUS_NAVIGATION_STARTING_POINT:
115 // Sent by ChromeVox but doesn't need to be handled by aura. 115 // Sent by ChromeVox but doesn't need to be handled by aura.
116 break; 116 break;
117 case ui::AX_ACTION_DECREMENT:
117 case ui::AX_ACTION_HIT_TEST: 118 case ui::AX_ACTION_HIT_TEST:
119 case ui::AX_ACTION_INCREMENT:
118 case ui::AX_ACTION_REPLACE_SELECTED_TEXT: 120 case ui::AX_ACTION_REPLACE_SELECTED_TEXT:
119 case ui::AX_ACTION_SCROLL_TO_POINT: 121 case ui::AX_ACTION_SCROLL_TO_POINT:
120 case ui::AX_ACTION_SET_SCROLL_OFFSET: 122 case ui::AX_ACTION_SET_SCROLL_OFFSET:
121 case ui::AX_ACTION_SET_VALUE: 123 case ui::AX_ACTION_SET_VALUE:
122 // Not implemented yet. 124 // Not implemented yet.
123 NOTREACHED(); 125 NOTREACHED();
124 break; 126 break;
125 case ui::AX_ACTION_NONE: 127 case ui::AX_ACTION_NONE:
126 NOTREACHED(); 128 NOTREACHED();
127 break; 129 break;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 190
189 processing_events_ = false; 191 processing_events_ = false;
190 auto pending_events_copy = pending_events_; 192 auto pending_events_copy = pending_events_;
191 pending_events_.clear(); 193 pending_events_.clear();
192 for (size_t i = 0; i < pending_events_copy.size(); ++i) { 194 for (size_t i = 0; i < pending_events_copy.size(); ++i) {
193 SendEvent(context, 195 SendEvent(context,
194 pending_events_copy[i].first, 196 pending_events_copy[i].first,
195 pending_events_copy[i].second); 197 pending_events_copy[i].second);
196 } 198 }
197 } 199 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/accessibility_action_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698