diff options
author | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 15:42:19 +0000 |
---|---|---|
committer | dmazzoni@chromium.org <dmazzoni@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-22 15:42:19 +0000 |
commit | 3fa0901a0b505e9170c7fb3482e0c20453f639ec (patch) | |
tree | 552c9aed11ebcb9f615e181b9a773a80d3992ad2 /content/browser/renderer_host/render_view_host_impl.cc | |
parent | 180d4e93366adc1281242eaa2a84a83962ad4cd2 (diff) | |
download | chromium_src-3fa0901a0b505e9170c7fb3482e0c20453f639ec.zip chromium_src-3fa0901a0b505e9170c7fb3482e0c20453f639ec.tar.gz chromium_src-3fa0901a0b505e9170c7fb3482e0c20453f639ec.tar.bz2 |
Implement Android accessible hit testing using an IPC to the renderer process.
Only Blink can accurately determine what node is under the user's finger.
Implement this by sending a hit test request every time the user does
touch exploration, and returning a hover event on the appropriate accessible
node in response.
The test is meant to be a good sanity test and a skeleton, it tests that
the hit test request returns a hover event in response, and I intend to
follow this up with more specific tests of behavior as we tweak the
algorithm.
BUG=357371
Review URL: https://codereview.chromium.org/290633002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_view_host_impl.cc')
-rw-r--r-- | content/browser/renderer_host/render_view_host_impl.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc index 7d1d567..0a95825 100644 --- a/content/browser/renderer_host/render_view_host_impl.cc +++ b/content/browser/renderer_host/render_view_host_impl.cc @@ -1464,7 +1464,7 @@ void RenderViewHostImpl::DisownOpener() { } void RenderViewHostImpl::SetAccessibilityCallbackForTesting( - const base::Callback<void(ui::AXEvent)>& callback) { + const base::Callback<void(ui::AXEvent, int)>& callback) { accessibility_testing_callback_ = callback; } @@ -1575,7 +1575,7 @@ void RenderViewHostImpl::OnAccessibilityEvents( ax_tree_.reset(new ui::AXTree(param.update)); else CHECK(ax_tree_->Unserialize(param.update)) << ax_tree_->error(); - accessibility_testing_callback_.Run(param.event_type); + accessibility_testing_callback_.Run(param.event_type, param.id); } } |