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

Issue 848653002: Re-land: Send Windows accessibility events based on tree updates. (Closed)

Created:
5 years, 11 months ago by dmazzoni
Modified:
5 years, 11 months ago
Reviewers:
David Tseng, aboxhall
CC:
chromium-reviews, plundblad+watch_chromium.org, aboxhall+watch_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@implicit_1_tests
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-land: Send Windows accessibility events based on tree updates. The idea of this change is to fire Win AX events based on the AX tree changing, rather than based on Blink firing the right event and mapping it to a Win event. Store the Win-specific AX attributes (ia role, ia state, name, value, etc.) in a struct, and when a node is updated, compare the old value of each attribute to the new value and fire an appropriate event for each one (name changed, state changed, etc.). Handle hypertext_ similarly, and properly diff the old and new hypertext in get_oldText and get_newText. This enables all of the "event" tests that were previously added to pass now, and it makes live regions work correctly in NVDA and JAWS. BUG=447962 Committed: https://crrev.com/eb691a960bef3c2aefa38627baa7cbdde480b81e Cr-Commit-Position: refs/heads/master@{#313052} Committed: https://crrev.com/9b381f3e36dfb3dc1fd93c46573222601b31d3d7 Cr-Commit-Position: refs/heads/master@{#313179}

Patch Set 1 #

Patch Set 2 : Ready #

Patch Set 3 : Remove logging #

Total comments: 17

Patch Set 4 : Rebase #

Patch Set 5 : Address feedback #

Patch Set 6 : Fix compile errors #

Patch Set 7 : Fix Android compile #

Patch Set 8 : Fix crash in unit tests #

Patch Set 9 : Rebased #

Patch Set 10 : Fix test flakiness #

Patch Set 11 : Rebase (bad) #

Patch Set 12 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+728 lines, -545 lines) Patch
M content/browser/accessibility/browser_accessibility.h View 1 2 3 4 5 6 7 11 7 chunks +15 lines, -17 lines 0 comments Download
M content/browser/accessibility/browser_accessibility.cc View 1 2 3 11 5 chunks +11 lines, -37 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_android.cc View 1 2 3 4 5 6 7 8 11 5 chunks +18 lines, -14 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_cocoa.mm View 1 2 3 4 5 11 3 chunks +9 lines, -4 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager.cc View 1 2 3 11 2 chunks +14 lines, -3 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.h View 1 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/accessibility/browser_accessibility_manager_win.cc View 1 2 3 4 5 6 7 11 10 chunks +64 lines, -28 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.h View 11 5 chunks +44 lines, -27 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 2 3 4 5 11 34 chunks +533 lines, -388 lines 0 comments Download
M content/browser/accessibility/dump_accessibility_events_browsertest.cc View 1 11 3 chunks +12 lines, -24 lines 0 comments Download
M content/browser/accessibility/site_per_process_accessibility_browsertest.cc View 1 2 3 11 2 chunks +3 lines, -1 line 0 comments Download
M content/test/data/accessibility/event/text-changed.html View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/data/accessibility/event/text-changed-expected-win.txt View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 23 (7 generated)
dmazzoni
Ready for review! Sorry this is so large, but a lot of the lines of ...
5 years, 11 months ago (2015-01-16 20:01:43 UTC) #2
dmazzoni
Friendly ping
5 years, 11 months ago (2015-01-21 00:07:40 UTC) #3
aboxhall
Argh, forgot to publish comments (too used to GitHub!) https://codereview.chromium.org/848653002/diff/40001/content/browser/accessibility/browser_accessibility.cc File content/browser/accessibility/browser_accessibility.cc (right): https://codereview.chromium.org/848653002/diff/40001/content/browser/accessibility/browser_accessibility.cc#newcode94 content/browser/accessibility/browser_accessibility.cc:94: ...
5 years, 11 months ago (2015-01-22 21:22:10 UTC) #4
dmazzoni
Feedback addressed, thanks! https://codereview.chromium.org/848653002/diff/40001/content/browser/accessibility/browser_accessibility.cc File content/browser/accessibility/browser_accessibility.cc (right): https://codereview.chromium.org/848653002/diff/40001/content/browser/accessibility/browser_accessibility.cc#newcode94 content/browser/accessibility/browser_accessibility.cc:94: bool BrowserAccessibility::PlatformIsChildOfLeaf() const { On 2015/01/22 ...
5 years, 11 months ago (2015-01-23 23:26:13 UTC) #5
aboxhall
lgtm https://codereview.chromium.org/848653002/diff/40001/content/browser/accessibility/browser_accessibility_win.cc File content/browser/accessibility/browser_accessibility_win.cc (right): https://codereview.chromium.org/848653002/diff/40001/content/browser/accessibility/browser_accessibility_win.cc#newcode3295 content/browser/accessibility/browser_accessibility_win.cc:3295: if (hypertext_ != old_hypertext_) { On 2015/01/23 23:26:13, ...
5 years, 11 months ago (2015-01-23 23:39:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848653002/80001
5 years, 11 months ago (2015-01-24 00:16:12 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/35788)
5 years, 11 months ago (2015-01-24 00:24:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848653002/140001
5 years, 11 months ago (2015-01-26 07:56:19 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/52706) Try jobs failed on following ...
5 years, 11 months ago (2015-01-26 08:04:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848653002/160001
5 years, 11 months ago (2015-01-26 08:34:57 UTC) #16
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 11 months ago (2015-01-26 09:32:58 UTC) #17
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/eb691a960bef3c2aefa38627baa7cbdde480b81e Cr-Commit-Position: refs/heads/master@{#313052}
5 years, 11 months ago (2015-01-26 09:34:03 UTC) #18
pauljensen
A revert of this CL (patchset #9 id:160001) has been created in https://codereview.chromium.org/880523002/ by pauljensen@chromium.org. ...
5 years, 11 months ago (2015-01-26 14:56:59 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848653002/220001
5 years, 11 months ago (2015-01-26 23:25:41 UTC) #21
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years, 11 months ago (2015-01-27 00:34:53 UTC) #22
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 00:38:39 UTC) #23
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/9b381f3e36dfb3dc1fd93c46573222601b31d3d7
Cr-Commit-Position: refs/heads/master@{#313179}

Powered by Google App Engine
This is Rietveld 408576698