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

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

Issue 2079073002: Make ChromeVox Next a setting in options page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 years, 6 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
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 17c7e57d8a490d9013904f8322ea1fceb80e625a..b2283a350f1860fe5f67046c1311465b1d630c2f 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -406,7 +406,7 @@ Output.INPUT_TYPE_MESSAGE_IDS_ = {
Output.RULES = {
navigate: {
'default': {
- speak: '$name $value $role $description',
+ speak: '$name $value $state $role $description',
braille: ''
},
abstractContainer: {
@@ -1068,7 +1068,9 @@ Output.prototype = {
} else if (token == 'state') {
options.annotation.push(token);
Object.getOwnPropertyNames(node.state).forEach(function(s) {
- this.append_(buff, s, options);
+ var stateInfo = Output.STATE_INFO_[s];
+ if (stateInfo && stateInfo.on)
+ this.append_(buff, Msgs.getMsg(stateInfo.on.msgId), options);
}.bind(this));
} else if (token == 'find') {
// Find takes two arguments: JSON query string and format string.

Powered by Google App Engine
This is Rietveld 408576698