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

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

Issue 2092743002: Revert of Make ChromeVox Next a setting in options page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 4124bc825c35f440354d3130ae4323fbe56a4544..17c7e57d8a490d9013904f8322ea1fceb80e625a 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.RULES = {
navigate: {
'default': {
- speak: '$name $value $state $role $description',
+ speak: '$name $value $role $description',
braille: ''
},
abstractContainer: {
@@ -1068,9 +1068,7 @@
} else if (token == 'state') {
options.annotation.push(token);
Object.getOwnPropertyNames(node.state).forEach(function(s) {
- var stateInfo = Output.STATE_INFO_[s];
- if (stateInfo && stateInfo.on)
- this.append_(buff, Msgs.getMsg(stateInfo.on.msgId), options);
+ this.append_(buff, s, options);
}.bind(this));
} else if (token == 'find') {
// Find takes two arguments: JSON query string and format string.
@@ -1294,7 +1292,7 @@
if (!range.start.node || !range.end.node)
return;
- if (!prevRange && range.start.node.root)
+ if (!prevRange)
prevRange = cursors.Range.fromNode(range.start.node.root);
var cursor = cursors.Cursor.fromNode(range.start.node);
var prevNode = prevRange.start.node;

Powered by Google App Engine
This is Rietveld 408576698