Chromium Code Reviews| Index: chrome/browser/resources/hotword/constants.js |
| diff --git a/chrome/browser/resources/hotword/constants.js b/chrome/browser/resources/hotword/constants.js |
| index 55a3d30dc7881976c9c33796433e77a468d6c3a4..af3b73711eb4ef7867835cc0d7b7565b05ddec43 100644 |
| --- a/chrome/browser/resources/hotword/constants.js |
| +++ b/chrome/browser/resources/hotword/constants.js |
| @@ -141,8 +141,8 @@ var CommandToPage = { |
| }; |
| /** |
| - * Messages sent from the Google page to the injected scripts |
| - * and then passed to the extension. |
| + * Messages sent from the Google page to the extension or to the |
| + * injected scripts and then passed to the extension. |
|
Anand Mistry (off Chromium)
2015/03/10 02:47:28
s/scripts/script while you're here
kcarattini
2015/03/10 04:34:05
Done.
|
| * @enum {string} |
| */ |
| var CommandFromPage = { |
| @@ -155,7 +155,14 @@ var CommandFromPage = { |
| CLICKED_RESUME: 'hcc', |
| CLICKED_RESTART: 'hcr', |
| CLICKED_DEBUG: 'hcd', |
| - WAKE_UP_HELPER: 'wuh' |
| + WAKE_UP_HELPER: 'wuh', |
| + // Command specifically for the opt-in promo below this line. |
| + // User has explicitly clicked 'no'. |
| + CLICKED_NO_OPTIN: 'hcno', |
| + // User has opted in. |
| + CLICKED_OPTIN: 'hco', |
| + // User clicked on the microphone. |
| + PAGE_WAKEUP: 'wu' |
| }; |
| /** |