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

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2748463003: Generalize the HIT_TEST accessibility action so that it can send any event. (Closed)
Patch Set: Use ParseAXEvent Created 3 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/frame_host/render_frame_host_impl.h" 5 #include "content/browser/frame_host/render_frame_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 if (manager) { 2206 if (manager) {
2207 manager->OnFindInPageResult( 2207 manager->OnFindInPageResult(
2208 params.request_id, params.match_index, params.start_id, 2208 params.request_id, params.match_index, params.start_id,
2209 params.start_offset, params.end_id, params.end_offset); 2209 params.start_offset, params.end_id, params.end_offset);
2210 } 2210 }
2211 } 2211 }
2212 } 2212 }
2213 2213
2214 void RenderFrameHostImpl::OnAccessibilityChildFrameHitTestResult( 2214 void RenderFrameHostImpl::OnAccessibilityChildFrameHitTestResult(
2215 const gfx::Point& point, 2215 const gfx::Point& point,
2216 int hit_obj_id) { 2216 int hit_obj_id,
2217 ui::AXEvent event_to_fire) {
2217 if (browser_accessibility_manager_) { 2218 if (browser_accessibility_manager_) {
2218 browser_accessibility_manager_->OnChildFrameHitTestResult(point, 2219 browser_accessibility_manager_->OnChildFrameHitTestResult(point, hit_obj_id,
2219 hit_obj_id); 2220 event_to_fire);
2220 } 2221 }
2221 } 2222 }
2222 2223
2223 void RenderFrameHostImpl::OnAccessibilitySnapshotResponse( 2224 void RenderFrameHostImpl::OnAccessibilitySnapshotResponse(
2224 int callback_id, 2225 int callback_id,
2225 const AXContentTreeUpdate& snapshot) { 2226 const AXContentTreeUpdate& snapshot) {
2226 const auto& it = ax_tree_snapshot_callbacks_.find(callback_id); 2227 const auto& it = ax_tree_snapshot_callbacks_.find(callback_id);
2227 if (it != ax_tree_snapshot_callbacks_.end()) { 2228 if (it != ax_tree_snapshot_callbacks_.end()) {
2228 ui::AXTreeUpdate dst_snapshot; 2229 ui::AXTreeUpdate dst_snapshot;
2229 dst_snapshot.root_id = snapshot.root_id; 2230 dst_snapshot.root_id = snapshot.root_id;
(...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
3634 service_manager::mojom::InterfaceProviderPtr provider; 3635 service_manager::mojom::InterfaceProviderPtr provider;
3635 BindInterfaceRegistryForRenderFrameHost(mojo::MakeRequest(&provider), this); 3636 BindInterfaceRegistryForRenderFrameHost(mojo::MakeRequest(&provider), this);
3636 java_interfaces_.reset(new service_manager::InterfaceProvider); 3637 java_interfaces_.reset(new service_manager::InterfaceProvider);
3637 java_interfaces_->Bind(std::move(provider)); 3638 java_interfaces_->Bind(std::move(provider));
3638 } 3639 }
3639 return java_interfaces_.get(); 3640 return java_interfaces_.get();
3640 } 3641 }
3641 #endif 3642 #endif
3642 3643
3643 } // namespace content 3644 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/common/accessibility_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698