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

Unified Diff: chrome/browser/resources/chromeos/chromevox/braille/spans.js

Issue 1039703002: Make contracted braille input work in more contexts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@docs2
Patch Set: Rebase Created 5 years, 7 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/braille/spans.js
diff --git a/chrome/browser/resources/chromeos/chromevox/braille/spans.js b/chrome/browser/resources/chromeos/chromevox/braille/spans.js
index 560fa0fca67901cde043daf056cd42a409477015..39ffea6ce8da2a0a5be4fb88d2e3c35392a333e0 100644
--- a/chrome/browser/resources/chromeos/chromevox/braille/spans.js
+++ b/chrome/browser/resources/chromeos/chromevox/braille/spans.js
@@ -7,6 +7,7 @@
* and selections.
*/
+goog.provide('cvox.ExtraCellsSpan');
goog.provide('cvox.ValueSelectionSpan');
goog.provide('cvox.ValueSpan');
@@ -63,3 +64,15 @@ cvox.ValueSelectionSpan = function() {
cvox.Spannable.registerStatelessSerializableSpan(
cvox.ValueSelectionSpan,
'cvox.ValueSelectionSpan');
+
+
+/**
+ * Causes raw cells to be added when translating from text to braille.
+ * This is supported by the {@code cvox.ExpandingBrailleTranslator}
+ * class.
+ * @constructor
+ */
+cvox.ExtraCellsSpan = function() {
+ /** @type {ArrayBuffer} */
+ this.cells = new Uint8Array(0).buffer;
+};

Powered by Google App Engine
This is Rietveld 408576698