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

Issue 2581483002: Add support for faster, more limited accessibility modes. (Closed)

Created:
4 years ago by dmazzoni
Modified:
4 years ago
CC:
aboxhall+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, jam, je_julie, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for faster, more limited accessibility modes. See bug for context. This patch begins the implementation of more limited accessibility modes by only fetching a subset of accessibility attributes from Blink unless more are explicitly needed. Only Windows is affected initially. By default now when accessibility support is enabled on Windows, only a few key accessibility attributes are fetched, like role, state, name, value, and location. As individual APIs are accessed that go beyond these, Chrome's accessibility mode is automatically changed to start fetching more. Screen readers are unaffected by this change. I manually tested JAWS and NVDA. Password managers and single-sign-on software should continue to work fine, but users should experience a performance boost. BUG=672205 Committed: https://crrev.com/368ea13e43a18dec62a7f72610398a2f9757b1c9 Cr-Commit-Position: refs/heads/master@{#439750}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix compile, add metrics #

Patch Set 4 : Fix compile #

Patch Set 5 : Added test coverage #

Patch Set 6 : Android compile fix #

Total comments: 10

Patch Set 7 : Address feedback from Nektarios #

Patch Set 8 : Address feedback from Ilya #

Total comments: 2

Patch Set 9 : Add deprecation TODO #

Patch Set 10 : Disable tests that can't pass on Android with TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+611 lines, -323 lines) Patch
M content/browser/accessibility/accessibility_mode_browsertest.cc View 1 2 3 4 5 6 7 8 9 6 chunks +110 lines, -39 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_state_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +44 lines, -2 lines 0 comments Download
M content/browser/accessibility/browser_accessibility_win.cc View 1 94 chunks +121 lines, -1 line 0 comments Download
M content/browser/renderer_host/legacy_render_widget_host_win.cc View 3 chunks +9 lines, -4 lines 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.h View 3 chunks +5 lines, -1 line 0 comments Download
M content/renderer/accessibility/blink_ax_tree_source.cc View 1 2 5 chunks +282 lines, -267 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/accessibility/render_accessibility_impl.cc View 1 2 3 4 5 3 chunks +8 lines, -5 lines 0 comments Download
M content/renderer/accessibility/render_accessibility_impl_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (35 generated)
dmazzoni
Ready for an initial look. I need to add a test.
4 years ago (2016-12-15 16:50:57 UTC) #7
aboxhall
On 2016/12/15 16:50:57, dmazzoni wrote: > Ready for an initial look. I need to add ...
4 years ago (2016-12-15 17:37:29 UTC) #8
dmazzoni
+isherman: metrics Alice, Nektarios: I added some tests and this is ready for complete review.
4 years ago (2016-12-16 22:02:42 UTC) #23
Ilya Sherman
https://codereview.chromium.org/2581483002/diff/100001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/2581483002/diff/100001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode160 content/browser/accessibility/browser_accessibility_state_impl.cc:160: UMA_AX_MODE_FLAG_MAX); nit: Please factor out a function for recording ...
4 years ago (2016-12-17 00:57:12 UTC) #27
nektarios
+ BrowserAccessibility* FindNode(ui::AXRole role, + const std::string& name) { + BrowserAccessibility* root = GetManager()->GetRoot(); + ...
4 years ago (2016-12-17 21:58:27 UTC) #28
nektarios
lgtm
4 years ago (2016-12-17 21:58:42 UTC) #29
dmazzoni
On 2016/12/17 21:58:27, nektarios wrote: > + BrowserAccessibility* FindNode(ui::AXRole role, > + const std::string& name) ...
4 years ago (2016-12-19 22:38:01 UTC) #30
dmazzoni
https://codereview.chromium.org/2581483002/diff/100001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/2581483002/diff/100001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode160 content/browser/accessibility/browser_accessibility_state_impl.cc:160: UMA_AX_MODE_FLAG_MAX); On 2016/12/17 00:57:12, Ilya Sherman wrote: > nit: ...
4 years ago (2016-12-19 22:51:51 UTC) #31
dmazzoni
+jam for owners review of: content/browser/renderer_host/legacy_render_widget_host_win.cc content/renderer/render_frame_impl.cc
4 years ago (2016-12-19 22:52:58 UTC) #33
Ilya Sherman
Metrics LGTM, thanks! https://codereview.chromium.org/2581483002/diff/140001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/2581483002/diff/140001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode138 content/browser/accessibility/browser_accessibility_state_impl.cc:138: UMA_HISTOGRAM_BOOLEAN("Accessibility.State", IsAccessibleBrowser()); Please add a TODO ...
4 years ago (2016-12-19 22:58:30 UTC) #36
dmazzoni
https://codereview.chromium.org/2581483002/diff/140001/content/browser/accessibility/browser_accessibility_state_impl.cc File content/browser/accessibility/browser_accessibility_state_impl.cc (right): https://codereview.chromium.org/2581483002/diff/140001/content/browser/accessibility/browser_accessibility_state_impl.cc#newcode138 content/browser/accessibility/browser_accessibility_state_impl.cc:138: UMA_HISTOGRAM_BOOLEAN("Accessibility.State", IsAccessibleBrowser()); On 2016/12/19 22:58:29, Ilya Sherman wrote: > ...
4 years ago (2016-12-19 23:02:15 UTC) #37
jam
lgtm
4 years ago (2016-12-19 23:52:46 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2581483002/180001
4 years ago (2016-12-20 06:04:23 UTC) #45
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years ago (2016-12-20 08:24:14 UTC) #48
commit-bot: I haz the power
4 years ago (2016-12-20 08:29:08 UTC) #50
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/368ea13e43a18dec62a7f72610398a2f9757b1c9
Cr-Commit-Position: refs/heads/master@{#439750}

Powered by Google App Engine
This is Rietveld 408576698