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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/braille/braille_translator_manager.js

Issue 924083004: Shorten Closure template notation from Array.<*> to Array<*> in cvox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 Keeps track of the current braille translators. 6 * @fileoverview Keeps track of the current braille translators.
7 */ 7 */
8 8
9 goog.provide('cvox.BrailleTranslatorManager'); 9 goog.provide('cvox.BrailleTranslatorManager');
10 10
11 goog.require('cvox.BrailleTable'); 11 goog.require('cvox.BrailleTable');
12 goog.require('cvox.ExpandingBrailleTranslator'); 12 goog.require('cvox.ExpandingBrailleTranslator');
13 goog.require('cvox.LibLouis'); 13 goog.require('cvox.LibLouis');
14 14
15 /** 15 /**
16 * @param {cvox.LibLouis=} opt_liblouisForTest Liblouis instance to use 16 * @param {cvox.LibLouis=} opt_liblouisForTest Liblouis instance to use
17 * for testing. 17 * for testing.
18 * @constructor 18 * @constructor
19 */ 19 */
20 cvox.BrailleTranslatorManager = function(opt_liblouisForTest) { 20 cvox.BrailleTranslatorManager = function(opt_liblouisForTest) {
21 /** 21 /**
22 * @type {!cvox.LibLouis} 22 * @type {!cvox.LibLouis}
23 * @private 23 * @private
24 */ 24 */
25 this.liblouis_ = opt_liblouisForTest || new cvox.LibLouis( 25 this.liblouis_ = opt_liblouisForTest || new cvox.LibLouis(
26 chrome.extension.getURL('braille/liblouis_nacl.nmf'), 26 chrome.extension.getURL('braille/liblouis_nacl.nmf'),
27 chrome.extension.getURL('braille/tables')); 27 chrome.extension.getURL('braille/tables'));
28 /** 28 /**
29 * @type {!Array.<function()>} 29 * @type {!Array<function()>}
30 * @private 30 * @private
31 */ 31 */
32 this.changeListeners_ = []; 32 this.changeListeners_ = [];
33 /** 33 /**
34 * @type {!Array.<cvox.BrailleTable.Table>} 34 * @type {!Array<cvox.BrailleTable.Table>}
35 * @private 35 * @private
36 */ 36 */
37 this.tables_ = []; 37 this.tables_ = [];
38 /** 38 /**
39 * @type {cvox.ExpandingBrailleTranslator} 39 * @type {cvox.ExpandingBrailleTranslator}
40 * @private 40 * @private
41 */ 41 */
42 this.expandingTranslator_ = null; 42 this.expandingTranslator_ = null;
43 /** 43 /**
44 * @type {cvox.LibLouis.Translator} 44 * @type {cvox.LibLouis.Translator}
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 }, 214 },
215 215
216 /** 216 /**
217 * @return {!cvox.LibLouis} The liblouis instance used by this object. 217 * @return {!cvox.LibLouis} The liblouis instance used by this object.
218 */ 218 */
219 getLibLouisForTest: function() { 219 getLibLouisForTest: function() {
220 return this.liblouis_; 220 return this.liblouis_;
221 }, 221 },
222 222
223 /** 223 /**
224 * @return {!Array.<cvox.BrailleTable.Table>} The currently loaded braille 224 * @return {!Array<cvox.BrailleTable.Table>} The currently loaded braille
225 * tables, or an empty array if they are not yet loaded. 225 * tables, or an empty array if they are not yet loaded.
226 */ 226 */
227 getTablesForTest: function() { 227 getTablesForTest: function() {
228 return this.tables_; 228 return this.tables_;
229 } 229 }
230 }; 230 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698