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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/background.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 The entry point for all ChromeVox2 related code for the 6 * @fileoverview The entry point for all ChromeVox2 related code for the
7 * background page. 7 * background page.
8 */ 8 */
9 9
10 goog.provide('Background'); 10 goog.provide('Background');
(...skipping 13 matching lines...) Expand all
24 var EventType = chrome.automation.EventType; 24 var EventType = chrome.automation.EventType;
25 25
26 /** 26 /**
27 * ChromeVox2 background page. 27 * ChromeVox2 background page.
28 * @constructor 28 * @constructor
29 */ 29 */
30 Background = function() { 30 Background = function() {
31 /** 31 /**
32 * A list of site substring patterns to use with ChromeVox next. Keep these 32 * A list of site substring patterns to use with ChromeVox next. Keep these
33 * strings relatively specific. 33 * strings relatively specific.
34 * @type {!Array.<string>} 34 * @type {!Array<string>}
35 * @private 35 * @private
36 */ 36 */
37 this.whitelist_ = ['chromevox_next_test']; 37 this.whitelist_ = ['chromevox_next_test'];
38 38
39 /** 39 /**
40 * @type {cvox.TabsApiHandler} 40 * @type {cvox.TabsApiHandler}
41 * @private 41 * @private
42 */ 42 */
43 this.tabsHandler_ = new cvox.TabsApiHandler(cvox.ChromeVox.tts, 43 this.tabsHandler_ = new cvox.TabsApiHandler(cvox.ChromeVox.tts,
44 cvox.ChromeVox.braille, 44 cvox.ChromeVox.braille,
(...skipping 13 matching lines...) Expand all
58 this.active_ = false; 58 this.active_ = false;
59 59
60 // Manually bind all functions to |this|. 60 // Manually bind all functions to |this|.
61 for (var func in this) { 61 for (var func in this) {
62 if (typeof(this[func]) == 'function') 62 if (typeof(this[func]) == 'function')
63 this[func] = this[func].bind(this); 63 this[func] = this[func].bind(this);
64 } 64 }
65 65
66 /** 66 /**
67 * Maps an automation event to its listener. 67 * Maps an automation event to its listener.
68 * @type {!Object.<EventType, function(Object) : void>} 68 * @type {!Object<EventType, function(Object) : void>}
69 */ 69 */
70 this.listeners_ = { 70 this.listeners_ = {
71 alert: this.onEventDefault, 71 alert: this.onEventDefault,
72 focus: this.onEventDefault, 72 focus: this.onEventDefault,
73 hover: this.onEventDefault, 73 hover: this.onEventDefault,
74 menuStart: this.onEventDefault, 74 menuStart: this.onEventDefault,
75 menuEnd: this.onEventDefault, 75 menuEnd: this.onEventDefault,
76 menuListValueChanged: this.onEventDefault, 76 menuListValueChanged: this.onEventDefault,
77 loadComplete: this.onLoadComplete, 77 loadComplete: this.onLoadComplete,
78 textChanged: this.onTextOrTextSelectionChanged, 78 textChanged: this.onTextOrTextSelectionChanged,
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 }.bind(this)); 392 }.bind(this));
393 } 393 }
394 }.bind(this)); 394 }.bind(this));
395 } 395 }
396 }; 396 };
397 397
398 /** @type {Background} */ 398 /** @type {Background} */
399 global.backgroundObj = new Background(); 399 global.backgroundObj = new Background();
400 400
401 }); // goog.scope 401 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698