Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Defines a Braille interface. | 6 * @fileoverview Defines a Braille interface. |
| 7 * | 7 * |
| 8 * All Braille engines in ChromeVox conform to this interface. | 8 * All Braille engines in ChromeVox conform to this interface. |
| 9 * | 9 * |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 goog.provide('cvox.BrailleInterface'); | 12 goog.provide('cvox.BrailleInterface'); |
| 13 | 13 |
| 14 goog.require('cvox.BrailleKeyCommand'); | 14 goog.require('cvox.BrailleKeyCommand'); |
| 15 goog.require('cvox.BrailleKeyEvent'); | 15 goog.require('cvox.BrailleKeyEvent'); |
| 16 goog.require('cvox.NavBraille'); | 16 goog.require('cvox.NavBraille'); |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * @interface | 19 * @interface |
| 20 */ | 20 */ |
| 21 cvox.BrailleInterface = function() { }; | 21 cvox.BrailleInterface = function() { }; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * Sends the given params to the Braille display for output. | 24 * Sends the given params to the Braille display for output. |
| 25 * @param {!cvox.NavBraille} params Parameters to send to the | 25 * @param {!cvox.NavBraille} params Parameters to send to the |
| 26 * platform braille service. | 26 * platform braille service. |
| 27 */ | 27 */ |
| 28 cvox.BrailleInterface.prototype.write = | 28 cvox.BrailleInterface.prototype.write = |
| 29 function(params) { }; | 29 function(params) { }; |
| 30 | |
| 31 /** | |
| 32 * Takes in a dataUrl in the form of a PNG and outputs it into a Braille | |
|
dmazzoni
2016/12/05 17:29:41
I'd say, takes an image (PNG is irrelevant) in the
ultimatedbz
2016/12/05 19:32:01
Done.
| |
| 33 * display for output. | |
| 34 * @param {!string} imageDataUrl The image to output, in the form of a | |
| 35 * dataUrl. | |
| 36 */ | |
| 37 cvox.BrailleInterface.prototype.writeRawImage = | |
| 38 function(imageDataUrl) { }; | |
| OLD | NEW |