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

Side by Side Diff: chrome/browser/extensions/api/automation_internal/automation_internal_api.cc

Issue 2080573003: Track all changed nodes during an update (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make suggested change. Created 4 years, 3 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 | chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js » ('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/extensions/api/automation_internal/automation_internal_ api.h" 5 #include "chrome/browser/extensions/api/automation_internal/automation_internal_ api.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 const std::vector<content::AXEventNotificationDetails>& details) 204 const std::vector<content::AXEventNotificationDetails>& details)
205 override { 205 override {
206 for (const auto& event : details) { 206 for (const auto& event : details) {
207 ExtensionMsg_AccessibilityEventParams params; 207 ExtensionMsg_AccessibilityEventParams params;
208 params.tree_id = event.ax_tree_id; 208 params.tree_id = event.ax_tree_id;
209 params.id = event.id; 209 params.id = event.id;
210 params.event_type = event.event_type; 210 params.event_type = event.event_type;
211 params.update = event.update; 211 params.update = event.update;
212 params.location_offset = 212 params.location_offset =
213 web_contents()->GetContainerBounds().OffsetFromOrigin(); 213 web_contents()->GetContainerBounds().OffsetFromOrigin();
214 params.event_from = event.event_from;
214 215
215 AutomationEventRouter* router = AutomationEventRouter::GetInstance(); 216 AutomationEventRouter* router = AutomationEventRouter::GetInstance();
216 router->DispatchAccessibilityEvent(params); 217 router->DispatchAccessibilityEvent(params);
217 } 218 }
218 } 219 }
219 220
220 void AccessibilityLocationChangesReceived( 221 void AccessibilityLocationChangesReceived(
221 const std::vector<content::AXLocationChangeNotificationDetails>& details) 222 const std::vector<content::AXLocationChangeNotificationDetails>& details)
222 override { 223 override {
223 for (const auto& src : details) { 224 for (const auto& src : details) {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 if (!error.empty()) { 462 if (!error.empty()) {
462 Respond(Error(error)); 463 Respond(Error(error));
463 return; 464 return;
464 } 465 }
465 466
466 Respond( 467 Respond(
467 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id))); 468 OneArgument(base::MakeUnique<base::FundamentalValue>(result_acc_obj_id)));
468 } 469 }
469 470
470 } // namespace extensions 471 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/chromevox/common/chrome_extension_externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698