| OLD | NEW |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |