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

Issue 1655153003: Fire an accessible click event when a web node is clicked on. (Closed)

Created:
4 years, 10 months ago by dmazzoni
Modified:
4 years, 10 months ago
CC:
chromium-reviews, eae+blinkwatch, dmazzoni+watch_chromium.org, rwlbuis, aboxhall, aboxhall+watch_chromium.org, jam, blink-reviews-dom_chromium.org, dglazkov+blink, je_julie, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org, mlamouri+watch-content_chromium.org, sof, yuzo+watch_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, plundblad+watch_chromium.org, nektar+watch_chromium.org, nektarios, dtseng+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, vtsaran
Base URL:
https://chromium.googlesource.com/chromium/src.git@fire_clicked_event
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fire an accessible click event when a web node is clicked on. The Android platform wants an accessible "click" event on any on-screen view that gets clicked on, whether the source of the click is the touch screen, mouse, keyboard, or even a direct API call. Implement it by hooking into EventDispatcher::dispatchEventPostProcess so that it doesn't matter what the source of the click event was. BUG=566166 Committed: https://crrev.com/d33b01f23e72c32f330a0295f8a696f7d55c6cef Cr-Commit-Position: refs/heads/master@{#374404}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Working on test #

Patch Set 3 : Finish tests #

Patch Set 4 : Rebase #

Patch Set 5 : Make testharness output clean #

Total comments: 2

Patch Set 6 : Test for accessibility click notification, not click event #

Total comments: 6

Patch Set 7 : Address feedback on tests from aboxhall #

Patch Set 8 : Added test for tap #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -4 lines) Patch
M chrome/common/extensions/api/automation.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/test_runner/web_test_proxy.cc View 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_android.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/accessibility/blink_ax_enum_conversion.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/accessibility/click-event.html View 1 2 3 4 5 6 7 1 chunk +163 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/AXObjectCache.h View 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/events/EventDispatcher.cpp View 1 3 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.h View 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebAXEnums.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/accessibility/ax_enums.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
dmazzoni
rbyers: could you review the change to EventDispatcher, or suggest a better reviewer? dtseng: everything ...
4 years, 10 months ago (2016-02-02 17:28:57 UTC) #2
Rick Byers
https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp File third_party/WebKit/Source/core/events/EventDispatcher.cpp (right): https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp#newcode204 third_party/WebKit/Source/core/events/EventDispatcher.cpp:204: cache->handleClicked(m_node); This is being called for ALL types of ...
4 years, 10 months ago (2016-02-02 18:22:57 UTC) #3
Rick Byers
On 2016/02/02 18:22:57, Rick Byers (slow until Feb 3) wrote: > https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp > File third_party/WebKit/Source/core/events/EventDispatcher.cpp ...
4 years, 10 months ago (2016-02-02 18:26:20 UTC) #4
dmazzoni
Thanks https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp File third_party/WebKit/Source/core/events/EventDispatcher.cpp (right): https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp#newcode204 third_party/WebKit/Source/core/events/EventDispatcher.cpp:204: cache->handleClicked(m_node); On 2016/02/02 18:22:57, Rick Byers (slow until ...
4 years, 10 months ago (2016-02-02 18:35:48 UTC) #5
David Tseng
https://codereview.chromium.org/1655153003/diff/1/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 (left): https://codereview.chromium.org/1655153003/diff/1/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java#oldcode240 content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java:240: sendAccessibilityEvent(virtualViewId, Great; looks like we were always sending clicked ...
4 years, 10 months ago (2016-02-02 18:49:59 UTC) #6
Rick Byers
https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp File third_party/WebKit/Source/core/events/EventDispatcher.cpp (right): https://codereview.chromium.org/1655153003/diff/1/third_party/WebKit/Source/core/events/EventDispatcher.cpp#newcode204 third_party/WebKit/Source/core/events/EventDispatcher.cpp:204: cache->handleClicked(m_node); On 2016/02/02 18:35:48, dmazzoni wrote: > On 2016/02/02 ...
4 years, 10 months ago (2016-02-02 18:55:37 UTC) #7
dmazzoni
Ready for another look, I added some tests. On 2016/02/02 18:55:37, Rick Byers wrote: > ...
4 years, 10 months ago (2016-02-03 19:13:36 UTC) #8
dmazzoni
https://codereview.chromium.org/1655153003/diff/1/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 (left): https://codereview.chromium.org/1655153003/diff/1/content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java#oldcode240 content/public/android/java/src/org/chromium/content/browser/accessibility/BrowserAccessibilityManager.java:240: sendAccessibilityEvent(virtualViewId, On 2016/02/02 18:49:59, David Tseng wrote: > Great; ...
4 years, 10 months ago (2016-02-03 19:13:46 UTC) #9
David Tseng
lgtm
4 years, 10 months ago (2016-02-03 19:15:29 UTC) #10
dmazzoni
Friendly ping - Rick, how does it look now?
4 years, 10 months ago (2016-02-05 17:25:54 UTC) #11
Rick Byers
Just one concern about what the test is actually testing. But if you want to ...
4 years, 10 months ago (2016-02-06 02:53:34 UTC) #12
dmazzoni
Tests fixed, see below. It sounds like Rick was happy with the change other than ...
4 years, 10 months ago (2016-02-08 17:21:07 UTC) #14
aboxhall
LGTM with suggestions. https://codereview.chromium.org/1655153003/diff/100001/third_party/WebKit/LayoutTests/accessibility/click-event.html File third_party/WebKit/LayoutTests/accessibility/click-event.html (right): https://codereview.chromium.org/1655153003/diff/100001/third_party/WebKit/LayoutTests/accessibility/click-event.html#newcode100 third_party/WebKit/LayoutTests/accessibility/click-event.html:100: eventSender.dragMode = true; Add another test ...
4 years, 10 months ago (2016-02-08 18:07:12 UTC) #15
dmazzoni
https://codereview.chromium.org/1655153003/diff/100001/third_party/WebKit/LayoutTests/accessibility/click-event.html File third_party/WebKit/LayoutTests/accessibility/click-event.html (right): https://codereview.chromium.org/1655153003/diff/100001/third_party/WebKit/LayoutTests/accessibility/click-event.html#newcode100 third_party/WebKit/LayoutTests/accessibility/click-event.html:100: eventSender.dragMode = true; On 2016/02/08 18:07:12, aboxhall wrote: > ...
4 years, 10 months ago (2016-02-08 21:34:46 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1655153003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1655153003/140001
4 years, 10 months ago (2016-02-08 21:42:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/20171)
4 years, 10 months ago (2016-02-09 02:50:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1655153003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1655153003/140001
4 years, 10 months ago (2016-02-09 16:18:56 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-09 17:36:21 UTC) #27
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 17:37:15 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d33b01f23e72c32f330a0295f8a696f7d55c6cef
Cr-Commit-Position: refs/heads/master@{#374404}

Powered by Google App Engine
This is Rietveld 408576698