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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/walkers/structural_line_walker.js

Issue 889593002: Refactorings to reduce dependencies in ChromeVox 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Readd missing dep and add a new one that should've been there already. Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698