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

Side by Side Diff: chrome/browser/resources/hotword/audio_client.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox 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 'use strict'; 5 'use strict';
6 6
7 /** 7 /**
8 * @fileoverview This is the audio client content script injected into eligible 8 * @fileoverview This is the audio client content script injected into eligible
9 * Google.com and New tab pages for interaction between the Webpage and the 9 * Google.com and New tab pages for interaction between the Webpage and the
10 * Hotword extension. 10 * Hotword extension.
(...skipping 12 matching lines...) Expand all
23 23
24 /** 24 /**
25 * Port used to communicate with the audio manager. 25 * Port used to communicate with the audio manager.
26 * @private {?Port} 26 * @private {?Port}
27 */ 27 */
28 this.port_ = null; 28 this.port_ = null;
29 29
30 /** 30 /**
31 * Keeps track of the effects of different commands. Used to verify that 31 * Keeps track of the effects of different commands. Used to verify that
32 * proper UIs are shown to the user. 32 * proper UIs are shown to the user.
33 * @private {Object.<AudioClient.CommandToPage, Object>} 33 * @private {Object<AudioClient.CommandToPage, Object>}
34 */ 34 */
35 this.uiStatus_ = null; 35 this.uiStatus_ = null;
36 36
37 /** 37 /**
38 * Bound function used to handle commands sent from the page to this script. 38 * Bound function used to handle commands sent from the page to this script.
39 * @private {Function} 39 * @private {Function}
40 */ 40 */
41 this.handleCommandFromPageFunc_ = null; 41 this.handleCommandFromPageFunc_ = null;
42 }; 42 };
43 43
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // in most cases, the extension will receive SPEECH_RESET twice, one from 365 // in most cases, the extension will receive SPEECH_RESET twice, one from
366 // this sendCommandToExtension_ and the one forwarded from the page. But 366 // this sendCommandToExtension_ and the one forwarded from the page. But
367 // that's OK and the extension can handle it. 367 // that's OK and the extension can handle it.
368 this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_RESET); 368 this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_RESET);
369 } 369 }
370 }; 370 };
371 371
372 // Initializes as soon as the code is ready, do not wait for the page. 372 // Initializes as soon as the code is ready, do not wait for the page.
373 new AudioClient().initialize(); 373 new AudioClient().initialize();
374 })(); 374 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/history/history.js ('k') | chrome/browser/resources/hotword/nacl_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698