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

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

Issue 1836113002: Fix accessible touch exploration inside of iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test startup on Android Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 78bd0e970850a5cd234e33c69b2fa799d104e1dd..57a34429a68f9ec3818879201326ae54ef61edc4 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -451,7 +451,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
// renderer process, and the accessibility tree it sent can be
// retrieved using GetAXTreeForTesting().
void SetAccessibilityCallbackForTesting(
- const base::Callback<void(ui::AXEvent, int)>& callback);
+ const base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)>&
+ callback);
// Called when the metadata about the accessibility tree for this frame
// changes due to a browser-side change, as opposed to due to an IPC from
@@ -654,6 +655,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
const std::vector<AccessibilityHostMsg_LocationChangeParams>& params);
void OnAccessibilityFindInPageResult(
const AccessibilityHostMsg_FindInPageResultParams& params);
+ void OnAccessibilityChildFrameHitTestResult(const gfx::Point& point,
+ int hit_obj_id);
void OnAccessibilitySnapshotResponse(
int callback_id,
const AXContentTreeUpdate& snapshot);
@@ -908,7 +911,8 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost,
std::map<int, AXTreeSnapshotCallback> ax_tree_snapshot_callbacks_;
// Callback when an event is received, for testing.
- base::Callback<void(ui::AXEvent, int)> accessibility_testing_callback_;
+ base::Callback<void(RenderFrameHostImpl*, ui::AXEvent, int)>
+ accessibility_testing_callback_;
// The most recently received accessibility tree - for testing only.
scoped_ptr<ui::AXTree> ax_tree_for_testing_;
// Flag to not create a BrowserAccessibilityManager, for testing. If one
« no previous file with comments | « content/browser/accessibility/hit_testing_browsertest.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698