| 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 88825d1023e50e212bb10caf927661e867de2778..c0359a5c1f69a48936082379866eaed80cdef5c9 100644
|
| --- a/content/browser/frame_host/render_frame_host_impl.cc
|
| +++ b/content/browser/frame_host/render_frame_host_impl.cc
|
| @@ -548,6 +548,8 @@ bool RenderFrameHostImpl::OnMessageReceived(const IPC::Message &msg) {
|
| OnAccessibilityLocationChanges)
|
| IPC_MESSAGE_HANDLER(AccessibilityHostMsg_FindInPageResult,
|
| OnAccessibilityFindInPageResult)
|
| + IPC_MESSAGE_HANDLER(AccessibilityHostMsg_ChildFrameHitTestResult,
|
| + OnAccessibilityChildFrameHitTestResult)
|
| IPC_MESSAGE_HANDLER(AccessibilityHostMsg_SnapshotResponse,
|
| OnAccessibilitySnapshotResponse)
|
| IPC_MESSAGE_HANDLER(FrameHostMsg_ToggleFullscreen, OnToggleFullscreen)
|
| @@ -1704,7 +1706,7 @@ void RenderFrameHostImpl::OnAccessibilityEvents(
|
| CHECK(ax_tree_for_testing_->Unserialize(detail.update))
|
| << ax_tree_for_testing_->error();
|
| }
|
| - accessibility_testing_callback_.Run(detail.event_type, detail.id);
|
| + accessibility_testing_callback_.Run(this, detail.event_type, detail.id);
|
| }
|
| }
|
| }
|
| @@ -1746,6 +1748,15 @@ void RenderFrameHostImpl::OnAccessibilityFindInPageResult(
|
| }
|
| }
|
|
|
| +void RenderFrameHostImpl::OnAccessibilityChildFrameHitTestResult(
|
| + const gfx::Point& point,
|
| + int hit_obj_id) {
|
| + if (browser_accessibility_manager_) {
|
| + browser_accessibility_manager_->OnChildFrameHitTestResult(point,
|
| + hit_obj_id);
|
| + }
|
| +}
|
| +
|
| void RenderFrameHostImpl::OnAccessibilitySnapshotResponse(
|
| int callback_id,
|
| const AXContentTreeUpdate& snapshot) {
|
| @@ -2413,7 +2424,8 @@ void RenderFrameHostImpl::RequestAXTreeSnapshot(
|
| }
|
|
|
| void RenderFrameHostImpl::SetAccessibilityCallbackForTesting(
|
| - const base::Callback<void(ui::AXEvent, int)>& callback) {
|
| + const base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)>&
|
| + callback) {
|
| accessibility_testing_callback_ = callback;
|
| }
|
|
|
|
|