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

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: 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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 if (manager) { 2078 if (manager) {
2079 manager->OnFindInPageResult( 2079 manager->OnFindInPageResult(
2080 params.request_id, params.match_index, params.start_id, 2080 params.request_id, params.match_index, params.start_id,
2081 params.start_offset, params.end_id, params.end_offset); 2081 params.start_offset, params.end_id, params.end_offset);
2082 } 2082 }
2083 } 2083 }
2084 } 2084 }
2085 2085
2086 void RenderFrameHostImpl::OnAccessibilityChildFrameHitTestResult( 2086 void RenderFrameHostImpl::OnAccessibilityChildFrameHitTestResult(
2087 const gfx::Point& point, 2087 const gfx::Point& point,
2088 int hit_obj_id) { 2088 int hit_obj_id,
2089 ui::AXEvent event_to_fire) {
2089 if (browser_accessibility_manager_) { 2090 if (browser_accessibility_manager_) {
2090 browser_accessibility_manager_->OnChildFrameHitTestResult(point, 2091 browser_accessibility_manager_->OnChildFrameHitTestResult(point, hit_obj_id,
2091 hit_obj_id); 2092 event_to_fire);
2092 } 2093 }
2093 } 2094 }
2094 2095
2095 void RenderFrameHostImpl::OnAccessibilitySnapshotResponse( 2096 void RenderFrameHostImpl::OnAccessibilitySnapshotResponse(
2096 int callback_id, 2097 int callback_id,
2097 const AXContentTreeUpdate& snapshot) { 2098 const AXContentTreeUpdate& snapshot) {
2098 const auto& it = ax_tree_snapshot_callbacks_.find(callback_id); 2099 const auto& it = ax_tree_snapshot_callbacks_.find(callback_id);
2099 if (it != ax_tree_snapshot_callbacks_.end()) { 2100 if (it != ax_tree_snapshot_callbacks_.end()) {
2100 ui::AXTreeUpdate dst_snapshot; 2101 ui::AXTreeUpdate dst_snapshot;
2101 dst_snapshot.root_id = snapshot.root_id; 2102 dst_snapshot.root_id = snapshot.root_id;
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
3475 GetUserData(kRenderFrameHostAndroidKey)); 3476 GetUserData(kRenderFrameHostAndroidKey));
3476 if (!render_frame_host_android) { 3477 if (!render_frame_host_android) {
3477 render_frame_host_android = new RenderFrameHostAndroid(this); 3478 render_frame_host_android = new RenderFrameHostAndroid(this);
3478 SetUserData(kRenderFrameHostAndroidKey, render_frame_host_android); 3479 SetUserData(kRenderFrameHostAndroidKey, render_frame_host_android);
3479 } 3480 }
3480 return render_frame_host_android->GetJavaObject(); 3481 return render_frame_host_android->GetJavaObject();
3481 } 3482 }
3482 #endif 3483 #endif
3483 3484
3484 } // namespace content 3485 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698