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

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

Issue 2386563003: Ensure typing echo pref is saved. (Closed)
Patch Set: m Created 4 years, 3 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/background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
index 70a50675ccda9d2187f05b1a7033998d2ec2dd15..0f3bfa353e932fe808567ee3ae1f23ed213ead99 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/background.js
@@ -114,6 +114,15 @@ Background = function() {
'Search+Shift' : 'Search';
}.bind(this)
});
+
+ Object.defineProperty(cvox.ChromeVox, 'typingEcho', {
+ get: function() {
+ return parseInt(localStorage['typingEcho'], 10);
+ }.bind(this),
+ set: function(v) {
+ localStorage['typingEcho'] = v;
+ }.bind(this)
+ });
}
Object.defineProperty(cvox.ChromeVox, 'isActive', {
« 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