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

Issue 290633002: Implement Android accessible hit testing using an IPC to the renderer process. (Closed)

Created:
6 years, 7 months ago by dmazzoni
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, nasko+codewatch_chromium.org, jam, yuzo+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@better_logging_2
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272193

Patch Set 1 #

Patch Set 2 : Tweak to algorithm to find highest leaf ancestor #

Total comments: 2

Patch Set 3 : Fix compile error on non-Android #

Patch Set 4 : Exclude Android test on other platforms #

Patch Set 5 : Oops, add back message handler #

Patch Set 6 : Rebase #

Patch Set 7 : Remove unused function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -102 lines) Patch
A content/browser/accessibility/android_hit_testing_browsertest.cc View 1 chunk +81 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_android.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.h View 2 chunks +3 lines, -13 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 2 3 4 5 6 4 chunks +24 lines, -67 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/accessibility_messages.h View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java View 3 chunks +16 lines, -12 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/accessibility/renderer_accessibility_complete.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M content/test/accessibility_browser_test_utils.h View 2 chunks +6 lines, -1 line 0 comments Download
M content/test/accessibility_browser_test_utils.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
dmazzoni
+plundblad for a first look
6 years, 7 months ago (2014-05-15 23:09:48 UTC) #1
Peter Lundblad
https://codereview.chromium.org/290633002/diff/20001/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java File content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java (right): https://codereview.chromium.org/290633002/diff/20001/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java#newcode256 content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java:256: nativeHitTest(mNativeObj, cssX, cssY); Do we get lots of these ...
6 years, 7 months ago (2014-05-19 16:58:44 UTC) #2
dmazzoni
On 2014/05/19 16:58:44, Peter Lundblad wrote: > https://codereview.chromium.org/290633002/diff/20001/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java > File > content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java > (right): > ...
6 years, 7 months ago (2014-05-19 17:02:08 UTC) #3
Peter Lundblad
lgtm Cool!
6 years, 7 months ago (2014-05-19 18:38:00 UTC) #4
dmazzoni
+jam for content/
6 years, 7 months ago (2014-05-19 19:12:56 UTC) #5
dmazzoni
+inferno for content/common/accessibility_messages*
6 years, 7 months ago (2014-05-19 19:13:36 UTC) #6
jam
lgtm for files outside accessibility directories https://codereview.chromium.org/290633002/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/290633002/diff/20001/content/browser/renderer_host/render_widget_host_impl.cc#newcode2042 content/browser/renderer_host/render_widget_host_impl.cc:2042: Send(new AccessibilityMsg_HitTest(GetRoutingID(), point)); ...
6 years, 7 months ago (2014-05-20 04:31:14 UTC) #7
Tom Sepez
I can give you a "Messages LGTM" in place of inferno ... thanks.
6 years, 7 months ago (2014-05-20 16:19:03 UTC) #8
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-05-20 18:30:57 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/290633002/40001
6 years, 7 months ago (2014-05-20 18:32:04 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-20 21:57:16 UTC) #11
dmazzoni
The CQ bit was unchecked by dmazzoni@chromium.org
6 years, 7 months ago (2014-05-20 22:13:55 UTC) #12
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-05-20 22:20:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/290633002/60001
6 years, 7 months ago (2014-05-20 22:22:28 UTC) #14
dmazzoni
The CQ bit was unchecked by dmazzoni@chromium.org
6 years, 7 months ago (2014-05-21 17:23:13 UTC) #15
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-05-21 19:41:22 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/290633002/100001
6 years, 7 months ago (2014-05-21 19:57:19 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 01:43:44 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 04:31:02 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/144804)
6 years, 7 months ago (2014-05-22 04:31:02 UTC) #20
dmazzoni
The CQ bit was checked by dmazzoni@chromium.org
6 years, 7 months ago (2014-05-22 05:54:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmazzoni@chromium.org/290633002/120001
6 years, 7 months ago (2014-05-22 05:56:27 UTC) #22
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 15:42:28 UTC) #23
Message was sent while issue was closed.
Change committed as 272193

Powered by Google App Engine
This is Rietveld 408576698