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

Side by Side Diff: content/browser/accessibility/browser_accessibility.cc

Issue 2913553003: Forward BrowserAccessibility accSelect() to AXPlatformNode. (Closed)
Patch Set: Drop passing node id to AccessibilityPerformAction Created 3 years, 6 months 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/browser_accessibility_com_win.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 (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/browser/accessibility/browser_accessibility.h" 5 #include "content/browser/accessibility/browser_accessibility.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <iterator> 10 #include <iterator>
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 return root_delegate->AccessibilityGetAcceleratedWidget(); 1211 return root_delegate->AccessibilityGetAcceleratedWidget();
1212 } 1212 }
1213 1213
1214 bool BrowserAccessibility::AccessibilityPerformAction( 1214 bool BrowserAccessibility::AccessibilityPerformAction(
1215 const ui::AXActionData& data) { 1215 const ui::AXActionData& data) {
1216 if (data.action == ui::AX_ACTION_DO_DEFAULT) { 1216 if (data.action == ui::AX_ACTION_DO_DEFAULT) {
1217 manager_->DoDefaultAction(*this); 1217 manager_->DoDefaultAction(*this);
1218 return true; 1218 return true;
1219 } 1219 }
1220 1220
1221 if (data.action == ui::AX_ACTION_FOCUS) {
1222 manager_->SetFocus(*this);
1223 return true;
1224 }
1225
1221 return false; 1226 return false;
1222 } 1227 }
1223 1228
1224 } // namespace content 1229 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_com_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698