OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 Objects used in spannables as annotations for ARIA values | 6 * @fileoverview Objects used in spannables as annotations for ARIA values |
7 * and selections. | 7 * and selections. |
8 */ | 8 */ |
9 | 9 |
| 10 goog.provide('cvox.ExtraCellsSpan'); |
10 goog.provide('cvox.ValueSelectionSpan'); | 11 goog.provide('cvox.ValueSelectionSpan'); |
11 goog.provide('cvox.ValueSpan'); | 12 goog.provide('cvox.ValueSpan'); |
12 | 13 |
13 goog.require('cvox.Spannable'); | 14 goog.require('cvox.Spannable'); |
14 | 15 |
15 /** | 16 /** |
16 * Attached to the value region of a braille spannable. | 17 * Attached to the value region of a braille spannable. |
17 * @param {number} offset The offset of the span into the value. | 18 * @param {number} offset The offset of the span into the value. |
18 * @constructor | 19 * @constructor |
19 */ | 20 */ |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 * Attached to the selected text within a value. | 57 * Attached to the selected text within a value. |
57 * @constructor | 58 * @constructor |
58 */ | 59 */ |
59 cvox.ValueSelectionSpan = function() { | 60 cvox.ValueSelectionSpan = function() { |
60 }; | 61 }; |
61 | 62 |
62 | 63 |
63 cvox.Spannable.registerStatelessSerializableSpan( | 64 cvox.Spannable.registerStatelessSerializableSpan( |
64 cvox.ValueSelectionSpan, | 65 cvox.ValueSelectionSpan, |
65 'cvox.ValueSelectionSpan'); | 66 'cvox.ValueSelectionSpan'); |
| 67 |
| 68 |
| 69 /** |
| 70 * Causes raw cells to be added when translating from text to braille. |
| 71 * This is supported by the {@code cvox.ExpandingBrailleTranslator} |
| 72 * class. |
| 73 * @constructor |
| 74 */ |
| 75 cvox.ExtraCellsSpan = function() { |
| 76 /** @type {ArrayBuffer} */ |
| 77 this.cells = new Uint8Array(0).buffer; |
| 78 }; |
OLD | NEW |