| 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 A JavaScript class for walking lines. | 6 * @fileoverview A JavaScript class for walking lines. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 goog.provide('cvox.StructuralLineWalker'); | 10 goog.provide('cvox.StructuralLineWalker'); |
| 11 | 11 |
| 12 goog.require('cvox.AbstractSelectionWalker'); | 12 goog.require('cvox.AbstractSelectionWalker'); |
| 13 goog.require('cvox.BrailleUtil'); |
| 13 goog.require('cvox.TraverseContent'); | 14 goog.require('cvox.TraverseContent'); |
| 14 | 15 |
| 15 /** | 16 /** |
| 16 * @constructor | 17 * @constructor |
| 17 * @extends {cvox.AbstractSelectionWalker} | 18 * @extends {cvox.AbstractSelectionWalker} |
| 18 */ | 19 */ |
| 19 cvox.StructuralLineWalker = function() { | 20 cvox.StructuralLineWalker = function() { |
| 20 goog.base(this); | 21 goog.base(this); |
| 21 this.grain = cvox.TraverseContent.kLine; | 22 this.grain = cvox.TraverseContent.kLine; |
| 22 }; | 23 }; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 var spannable = | 69 var spannable = |
| 69 cvox.BrailleUtil.getTemplated(prevNode, objNode, {name: name}); | 70 cvox.BrailleUtil.getTemplated(prevNode, objNode, {name: name}); |
| 70 spannable.setSpan(objNode, 0, spannable.getLength()); | 71 spannable.setSpan(objNode, 0, spannable.getLength()); |
| 71 braille.text = spannable; | 72 braille.text = spannable; |
| 72 | 73 |
| 73 // Remove any selections. | 74 // Remove any selections. |
| 74 braille.startIndex = 0; | 75 braille.startIndex = 0; |
| 75 braille.endIndex = 0; | 76 braille.endIndex = 0; |
| 76 return braille; | 77 return braille; |
| 77 }; | 78 }; |
| OLD | NEW |