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

Unified Diff: chrome/browser/resources/hotword_helper/audio_client.js

Issue 164313005: [Hotword] Updating the helper extension to listen to the speech reset message from the main extensi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: or not Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword_helper/audio_client.js
diff --git a/chrome/browser/resources/hotword_helper/audio_client.js b/chrome/browser/resources/hotword_helper/audio_client.js
index 690a8061cfd908209b95e9d90dd483473e0f1216..927e0f7892c14d01e89a8c753815350ec2d431b2 100644
--- a/chrome/browser/resources/hotword_helper/audio_client.js
+++ b/chrome/browser/resources/hotword_helper/audio_client.js
@@ -64,6 +64,7 @@
AudioClient.CommandFromPage = {
SPEECH_START: 'ss',
SPEECH_END: 'se',
+ SPEECH_RESET: 'sr',
SHOWING_HOTWORD_START: 'shs',
SHOWING_ERROR_MESSAGE: 'sem',
SHOWING_TIMEOUT_MESSAGE: 'stm',
@@ -287,6 +288,10 @@
this.speechActive_ = false;
this.sendCommandToExtension_(command);
break;
+ case AudioClient.CommandFromPage.SPEECH_RESET:
+ this.speechActive_ = false;
+ this.sendCommandToExtension_(command);
+ break;
case 'SPEECH_RESET': // Legacy, for embedded NTP.
this.speechActive_ = false;
this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_END);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698