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

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

Issue 2544203004: Display images in multiline Braille
Patch Set: Rebased back onto Master Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Sends Braille commands to the Braille API. 6 * @fileoverview Sends Braille commands to the Braille API.
7 */ 7 */
8 8
9 goog.provide('cvox.BrailleBackground'); 9 goog.provide('cvox.BrailleBackground');
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 this.inputHandler_.init(); 60 this.inputHandler_.init();
61 }; 61 };
62 62
63 63
64 /** @override */ 64 /** @override */
65 cvox.BrailleBackground.prototype.write = function(params) { 65 cvox.BrailleBackground.prototype.write = function(params) {
66 this.setContent_(params, null); 66 this.setContent_(params, null);
67 }; 67 };
68 68
69 69
70 /** @override */
71 cvox.BrailleBackground.prototype.writeRawImage = function(imageDataUrl) {
72 this.displayManager_.setImageContent(imageDataUrl);
73 };
74
75
70 /** 76 /**
71 * @return {cvox.BrailleTranslatorManager} The translator manager used by this 77 * @return {cvox.BrailleTranslatorManager} The translator manager used by this
72 * instance. 78 * instance.
73 */ 79 */
74 cvox.BrailleBackground.prototype.getTranslatorManager = function() { 80 cvox.BrailleBackground.prototype.getTranslatorManager = function() {
75 return this.translatorManager_; 81 return this.translatorManager_;
76 }; 82 };
77 83
78 84
79 /** 85 /**
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 function(brailleEvt, content) { 142 function(brailleEvt, content) {
137 var msg = { 143 var msg = {
138 'message': 'BRAILLE', 144 'message': 'BRAILLE',
139 'args': brailleEvt 145 'args': brailleEvt
140 }; 146 };
141 if (content === this.lastContent_) { 147 if (content === this.lastContent_) {
142 msg.contentId = this.lastContentId_; 148 msg.contentId = this.lastContentId_;
143 } 149 }
144 cvox.ExtensionBridge.send(msg); 150 cvox.ExtensionBridge.send(msg);
145 }; 151 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698