Commit c9ae2d4f authored by dtseng's avatar dtseng Committed by Commit bot

support basic table output.

Review URL: https://codereview.chromium.org/1134383002

Cr-Commit-Position: refs/heads/master@{#330436}
parent 5c8a902e
...@@ -363,6 +363,9 @@ Output.RULES = { ...@@ -363,6 +363,9 @@ Output.RULES = {
alertDialog: { alertDialog: {
enter: '$name $role $descendants' enter: '$name $role $descendants'
}, },
cell: {
enter: '@column_granularity $tableCellColumnIndex'
},
checkBox: { checkBox: {
speak: '$name $role $checked' speak: '$name $role $checked'
}, },
...@@ -422,6 +425,9 @@ Output.RULES = { ...@@ -422,6 +425,9 @@ Output.RULES = {
radioGroup: { radioGroup: {
enter: '$name $role' enter: '$name $role'
}, },
row: {
enter: '@row_granularity $tableRowIndex'
},
slider: { slider: {
speak: '@describe_slider($value, $name) $help' speak: '@describe_slider($value, $name) $help'
}, },
...@@ -845,6 +851,14 @@ Output.prototype = { ...@@ -845,6 +851,14 @@ Output.prototype = {
console.error('Missing role info for ' + node.role); console.error('Missing role info for ' + node.role);
} }
this.append_(buff, msg, options); this.append_(buff, msg, options);
} else if (token == 'tableRowIndex' ||
token == 'tableCellColumnIndex') {
var value = node.attributes[token];
if (!value)
return;
value = String(value + 1);
options.annotation.push(token);
this.append_(buff, value, options);
} else if (node.attributes[token] !== undefined) { } else if (node.attributes[token] !== undefined) {
options.annotation.push(token); options.annotation.push(token);
var value = node.attributes[token]; var value = node.attributes[token];
......
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