Commit 130d110e authored by David Tseng's avatar David Tseng Committed by Commit Bot

Audit ChromeVox for active descendant support

This adds active descendant to a few output rules that should have it.

Note that explicitly including the active descendant in these rules makes it possible to continue to see the entire output rule as a whole. This makes it possible to provide more intelligent output based on @message_strings, if desired.

Bug: 781840
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: Ia3f8bb0e6613d55e080be7b6eccfbdf0ee35033e
Reviewed-on: https://chromium-review.googlesource.com/898023Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Commit-Queue: David Tseng <dtseng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533835}
parent b0fc027b
...@@ -280,7 +280,8 @@ Output.PRESSED_STATE_MAP = { ...@@ -280,7 +280,8 @@ Output.PRESSED_STATE_MAP = {
Output.RULES = { Output.RULES = {
navigate: { navigate: {
'default': { 'default': {
speak: `$name $value $state $restriction $role $description`, speak: `$name $node(activeDescendant) $value $state $restriction $role
$description`,
braille: `` braille: ``
}, },
abstractContainer: { abstractContainer: {
...@@ -301,7 +302,7 @@ Output.RULES = { ...@@ -301,7 +302,7 @@ Output.RULES = {
speak: `$if($valueForRange, $valueForRange, $value) speak: `$if($valueForRange, $valueForRange, $value)
$if($minValueForRange, @aria_value_min($minValueForRange)) $if($minValueForRange, @aria_value_min($minValueForRange))
$if($maxValueForRange, @aria_value_max($maxValueForRange)) $if($maxValueForRange, @aria_value_max($maxValueForRange))
$name $role $description $state $restriction` $name $node(activeDescendant) $role $description $state $restriction`
}, },
alert: { alert: {
enter: `$name $role $state`, enter: `$name $role $state`,
...@@ -390,7 +391,8 @@ Output.RULES = { ...@@ -390,7 +391,8 @@ Output.RULES = {
listMarker: {speak: `$name`}, listMarker: {speak: `$name`},
menu: { menu: {
enter: `$name $role`, enter: `$name $role`,
speak: `$name $role @@list_with_items($countChildren(menuItem)) speak: `$name $node(activeDescendant)
$role @@list_with_items($countChildren(menuItem))
$description $state $restriction` $description $state $restriction`
}, },
menuItem: { menuItem: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment