Chromium Code Reviews| Index: content/browser/frame_host/render_frame_host_impl.cc |
| diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
| index 317829c0f9c1bafa77d962e25ef1f2102389e663..ce46a716faaa467ec5ea42b44a2f484e74839623 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.cc |
| +++ b/content/browser/frame_host/render_frame_host_impl.cc |
| @@ -1892,7 +1892,19 @@ void RenderFrameHostImpl::OnAccessibilityLocationChanges( |
| if (manager) |
| manager->OnLocationChanges(params); |
| } |
| - // TODO(aboxhall): send location change events to web contents observers too |
|
aboxhall
2016/08/22 19:48:38
yay
|
| + |
| + // Send the updates to the automation extension API. |
| + std::vector<AXLocationChangeNotificationDetails> details; |
| + details.reserve(params.size()); |
| + for (size_t i = 0; i < params.size(); ++i) { |
| + const AccessibilityHostMsg_LocationChangeParams& param = params[i]; |
| + AXLocationChangeNotificationDetails detail; |
| + detail.id = param.id; |
| + detail.ax_tree_id = GetAXTreeID(); |
| + detail.new_location = param.new_location; |
| + details.push_back(detail); |
| + } |
| + delegate_->AccessibilityLocationChangesReceived(details); |
| } |
| } |