| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |