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

Issue 2160303002: Fix file manager labels and aria role. (Closed)

Created:
4 years, 5 months ago by David Tseng
Modified:
4 years, 4 months ago
Reviewers:
dmazzoni, michaelpg, yawano
CC:
aboxhall+watch_chromium.org, arv+watch_chromium.org, chromium-reviews, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, je_julie, mtomasz+watch_chromium.org, nektar+watch_chromium.org, oshima+watch_chromium.org, rginda+watch_chromium.org, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix file manager labels and aria role. 1. Give the "tree" widget an Aria role of "tree". This, among other things, tells Blink to fire an active descendant change event when the aria-activedescendant id changes. This also causes ChromeVox to announce the tree view as a "tree" rather than a "group" 2. make the DirectoryItem which takes a string label associate that label with the HTMLElement via aria-label. Note that a client such as ChromeVox would not have any other way of knowing this label other than a heuristic like reading hte descendants of the tree item. In this case, that won't work because the tree items can and do nest other tree items. 3. modify ChromeVox's output rules to add a rule for speaking tree items. Previously, we only dealt with entering tree tiems because we only placed range around a tree item via navigation. However, it's possible to focus tree items via active descendant or explicit page focus, so provide a rule for this case. BUG=628972 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/ac22ee8c6545be19f2208bdd1f13d6dcfddc1c58 Cr-Commit-Position: refs/heads/master@{#411545}

Patch Set 1 #

Total comments: 2

Patch Set 2 : m #

Patch Set 3 : m #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/directory_tree.js View 2 chunks +3 lines, -1 line 3 comments Download
M ui/webui/resources/js/cr/ui/tree.js View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (17 generated)
David Tseng
michaelpg for ui/* dmazzoni for ChromeVox.
4 years, 5 months ago (2016-07-19 17:37:09 UTC) #5
dmazzoni
lgtm https://codereview.chromium.org/2160303002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/2160303002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js#newcode547 chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:547: speak: '$name ' + indentation should match "enter"?
4 years, 5 months ago (2016-07-19 19:14:59 UTC) #6
michaelpg
ui/ lgtm
4 years, 5 months ago (2016-07-19 19:20:25 UTC) #7
David Tseng
https://codereview.chromium.org/2160303002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js File chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js (right): https://codereview.chromium.org/2160303002/diff/1/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js#newcode547 chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js:547: speak: '$name ' + On 2016/07/19 19:14:59, dmazzoni wrote: ...
4 years, 5 months ago (2016-07-19 20:35:17 UTC) #8
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/2160303002/20001
4 years, 5 months ago (2016-07-19 20:40:31 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/220882)
4 years, 5 months ago (2016-07-19 20:52:31 UTC) #13
David Tseng
+ yawano for ui/file_manager/
4 years, 4 months ago (2016-07-26 17:32:47 UTC) #15
dmazzoni
lgtm lgtm for chromevox
4 years, 4 months ago (2016-07-26 22:13:48 UTC) #18
yawano
https://codereview.chromium.org/2160303002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js File ui/file_manager/file_manager/foreground/js/ui/directory_tree.js (right): https://codereview.chromium.org/2160303002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js#newcode125 ui/file_manager/file_manager/foreground/js/ui/directory_tree.js:125: item.setAttribute('aria-label', label); Should we use aria-labelledby since the label ...
4 years, 4 months ago (2016-07-27 01:22:08 UTC) #19
David Tseng
https://codereview.chromium.org/2160303002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js File ui/file_manager/file_manager/foreground/js/ui/directory_tree.js (right): https://codereview.chromium.org/2160303002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js#newcode125 ui/file_manager/file_manager/foreground/js/ui/directory_tree.js:125: item.setAttribute('aria-label', label); On 2016/07/27 01:22:08, yawano wrote: > Should ...
4 years, 4 months ago (2016-08-08 21:32:02 UTC) #20
chromium-reviews
I just updated ui/webui/resources/js/cr/ui/tree.js to do something similar. Does this class possibly inherit from the ...
4 years, 4 months ago (2016-08-08 21:39:45 UTC) #21
David Tseng
Possibly, but the subclass does it's own thing. I'll take a look. On Mon, Aug ...
4 years, 4 months ago (2016-08-08 22:32:12 UTC) #22
David Tseng
Still need this change. Friendly ping @ywano
4 years, 4 months ago (2016-08-11 00:56:37 UTC) #23
yawano
lgtm. Sorry for this late reply. https://codereview.chromium.org/2160303002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js File ui/file_manager/file_manager/foreground/js/ui/directory_tree.js (right): https://codereview.chromium.org/2160303002/diff/40001/ui/file_manager/file_manager/foreground/js/ui/directory_tree.js#newcode125 ui/file_manager/file_manager/foreground/js/ui/directory_tree.js:125: item.setAttribute('aria-label', label); On ...
4 years, 4 months ago (2016-08-12 00:46:43 UTC) #24
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/2160303002/40001
4 years, 4 months ago (2016-08-12 02:38:13 UTC) #30
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-12 03:43:56 UTC) #32
commit-bot: I haz the power
4 years, 4 months ago (2016-08-12 03:46:17 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ac22ee8c6545be19f2208bdd1f13d6dcfddc1c58
Cr-Commit-Position: refs/heads/master@{#411545}

Powered by Google App Engine
This is Rietveld 408576698