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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2255093005: Pass accessible location change messages to the automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative fix to cast_shell Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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
+
+ // 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);
}
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698