Commit a3734edc authored by rlp@chromium.org's avatar rlp@chromium.org

[Hotword] Updating the helper extension to listen to the speech reset message...

[Hotword] Updating the helper extension to listen to the speech reset message from the main extension.

BUG=325439, 289023
TBR=jhawkins@chromium.org

Review URL: https://codereview.chromium.org/164313005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251487 0039d316-1c4b-4281-b951-d872f2087c98
parent 5bfd0a44
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
AudioClient.CommandFromPage = { AudioClient.CommandFromPage = {
SPEECH_START: 'ss', SPEECH_START: 'ss',
SPEECH_END: 'se', SPEECH_END: 'se',
SPEECH_RESET: 'sr',
SHOWING_HOTWORD_START: 'shs', SHOWING_HOTWORD_START: 'shs',
SHOWING_ERROR_MESSAGE: 'sem', SHOWING_ERROR_MESSAGE: 'sem',
SHOWING_TIMEOUT_MESSAGE: 'stm', SHOWING_TIMEOUT_MESSAGE: 'stm',
...@@ -287,6 +288,10 @@ ...@@ -287,6 +288,10 @@
this.speechActive_ = false; this.speechActive_ = false;
this.sendCommandToExtension_(command); this.sendCommandToExtension_(command);
break; break;
case AudioClient.CommandFromPage.SPEECH_RESET:
this.speechActive_ = false;
this.sendCommandToExtension_(command);
break;
case 'SPEECH_RESET': // Legacy, for embedded NTP. case 'SPEECH_RESET': // Legacy, for embedded NTP.
this.speechActive_ = false; this.speechActive_ = false;
this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_END); this.sendCommandToExtension_(AudioClient.CommandFromPage.SPEECH_END);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment