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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 1134383002: support basic table output. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
index 3be31387ffb3b7cb16a2a2ecb9f57c6eea95bcb7..137ce147248c60fae2ea2273588e0d12d76224bb 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -363,6 +363,9 @@ Output.RULES = {
alertDialog: {
enter: '$name $role $descendants'
},
+ cell: {
+ enter: '@column_granularity $tableCellColumnIndex'
+ },
checkBox: {
speak: '$name $role $checked'
},
@@ -422,6 +425,9 @@ Output.RULES = {
radioGroup: {
enter: '$name $role'
},
+ row: {
+ enter: '@row_granularity $tableRowIndex'
+ },
slider: {
speak: '@describe_slider($value, $name) $help'
},
@@ -845,6 +851,14 @@ Output.prototype = {
console.error('Missing role info for ' + node.role);
}
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) {
options.annotation.push(token);
var value = node.attributes[token];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698