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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/braille_background.js

Issue 2703663002: Display images in multiline Braille (Closed)
Patch Set: Final feedback Created 3 years, 10 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/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.

Powered by Google App Engine
This is Rietveld 408576698