Chromium Code Reviews| Index: chrome/browser/resources/chromeos/chromevox/braille/spans.js |
| diff --git a/chrome/browser/resources/chromeos/chromevox/braille/spans.js b/chrome/browser/resources/chromeos/chromevox/braille/spans.js |
| index 525b107e589b97de92251abcac8347790013fcc5..b965c224eaeee7fa4e71b4423d3ddd16c3c8d6f4 100644 |
| --- a/chrome/browser/resources/chromeos/chromevox/braille/spans.js |
| +++ b/chrome/browser/resources/chromeos/chromevox/braille/spans.js |
| @@ -8,9 +8,11 @@ |
| */ |
| goog.provide('cvox.ExtraCellsSpan'); |
| +goog.provide('cvox.FormSpan'); |
| goog.provide('cvox.ValueSelectionSpan'); |
| goog.provide('cvox.ValueSpan'); |
| +goog.require('cvox.LibLouis.FormType'); |
| goog.require('Spannable'); |
| /** |
| @@ -72,3 +74,14 @@ cvox.ExtraCellsSpan = function() { |
| /** @type {ArrayBuffer} */ |
| this.cells = new Uint8Array(0).buffer; |
| }; |
| + |
| + |
| +/** |
| + * Indicates a text form during translation in Liblouis. |
| + * @param {cvox.LibLouis.FormType} formType |
| + * @constructor |
| + */ |
| +cvox.FormSpan = function(formType) { |
|
dmazzoni
2017/06/27 21:21:52
The word "form" has other meanings. formType or ty
David Tseng
2017/06/27 23:52:41
The spans are really only useful for liblouis, but
|
| + /** @type {cvox.LibLouis.FormType} */ |
| + this.formType = formType; |
| +}; |