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

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

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: Fix svg Created 3 years, 6 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 /* eslint-disable no-restricted-properties */
8
7 /** 9 /**
8 * @fileoverview This is the audio client content script injected into eligible 10 * @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 11 * Google.com and New tab pages for interaction between the Webpage and the
10 * Hotword extension. 12 * Hotword extension.
11 */ 13 */
12 14
13 (function() { 15 (function() {
14 /** 16 /**
15 * @constructor 17 * @constructor
16 */ 18 */
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // in most cases, the extension will receive SPEECH_RESET twice, one from 367 // in most cases, the extension will receive SPEECH_RESET twice, one from
366 // this sendCommandToExtension_ and the one forwarded from the page. But 368 // this sendCommandToExtension_ and the one forwarded from the page. But
367 // that's OK and the extension can handle it. 369 // that's OK and the extension can handle it.
368 this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_RESET); 370 this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_RESET);
369 } 371 }
370 }; 372 };
371 373
372 // Initializes as soon as the code is ready, do not wait for the page. 374 // Initializes as soon as the code is ready, do not wait for the page.
373 new AudioClient().initialize(); 375 new AudioClient().initialize();
374 })(); 376 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/switch_access/options.js ('k') | chrome/browser/resources/instant/instant.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698