| Index: chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| index 7ac49299d29d7f0064070492a89577ed25706a3b..d1686727f74fa7a00edc829fa3619eaf46751c0b 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js
|
| @@ -58,15 +58,48 @@ cvox.BrailleBackground = function(opt_displayManagerForTest,
|
| this.inputHandler_ = opt_inputHandlerForTest ||
|
| new cvox.BrailleInputHandler(this.translatorManager_);
|
| this.inputHandler_.init();
|
| +
|
| + /** @private {boolean} */
|
| + this.frozen_ = false;
|
| };
|
|
|
|
|
| /** @override */
|
| cvox.BrailleBackground.prototype.write = function(params) {
|
| + if (this.frozen_) {
|
| + return;
|
| + }
|
| this.setContent_(params, null);
|
| };
|
|
|
|
|
| +/** @override */
|
| +cvox.BrailleBackground.prototype.writeRawImage = function(imageDataUrl) {
|
| + if (this.frozen_) {
|
| + return;
|
| + }
|
| + this.displayManager_.setImageContent(imageDataUrl);
|
| +};
|
| +
|
| +
|
| +/** @override */
|
| +cvox.BrailleBackground.prototype.freeze = function() {
|
| + this.frozen_ = true;
|
| +};
|
| +
|
| +
|
| +/** @override */
|
| +cvox.BrailleBackground.prototype.thaw = function() {
|
| + this.frozen_ = false;
|
| +};
|
| +
|
| +
|
| +/** @override */
|
| +cvox.BrailleBackground.prototype.getDisplayState = function() {
|
| + return this.displayManager_.getDisplayState();
|
| +};
|
| +
|
| +
|
| /**
|
| * @return {cvox.BrailleTranslatorManager} The translator manager used by this
|
| * instance.
|
|
|