Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 cr.define('hotword.constants', function() { | 5 cr.define('hotword.constants', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Hotword data shared module extension's ID. | 10 * Hotword data shared module extension's ID. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 REQUEST_MODEL: 'model', | 75 REQUEST_MODEL: 'model', |
| 76 MODEL_LOADED: 'model_loaded', | 76 MODEL_LOADED: 'model_loaded', |
| 77 READY_FOR_AUDIO: 'audio', | 77 READY_FOR_AUDIO: 'audio', |
| 78 STOPPED: 'stopped', | 78 STOPPED: 'stopped', |
| 79 HOTWORD_DETECTED: 'hotword', | 79 HOTWORD_DETECTED: 'hotword', |
| 80 MS_CONFIGURED: 'ms_configured' | 80 MS_CONFIGURED: 'ms_configured' |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 | 83 |
| 84 /** | 84 /** |
| 85 * Source of a hotwording session request. | |
| 86 * @enum {string} | |
| 87 */ | |
| 88 var SessionSource = { | |
| 89 LAUNCHER: 'launcher', | |
| 90 NTP: 'ntp', | |
| 91 GOOGLE_COM: 'google.com' | |
|
rpetterson
2014/09/10 17:53:31
Where are the NTP and GOOGLE_COM ones currently (o
Anand Mistry (off Chromium)
2014/09/10 23:29:42
They're not used in this change, so I've removed t
| |
| 92 }; | |
| 93 | |
| 94 | |
| 95 /** | |
| 85 * The browser UI language. | 96 * The browser UI language. |
| 86 * @const {string} | 97 * @const {string} |
| 87 */ | 98 */ |
| 88 var UI_LANGUAGE = (chrome.i18n && chrome.i18n.getUILanguage) ? | 99 var UI_LANGUAGE = (chrome.i18n && chrome.i18n.getUILanguage) ? |
| 89 chrome.i18n.getUILanguage() : ''; | 100 chrome.i18n.getUILanguage() : ''; |
| 90 | 101 |
| 91 return { | 102 return { |
| 92 SHARED_MODULE_ID: SHARED_MODULE_ID, | 103 SHARED_MODULE_ID: SHARED_MODULE_ID, |
| 93 SHARED_MODULE_ROOT: SHARED_MODULE_ROOT, | 104 SHARED_MODULE_ROOT: SHARED_MODULE_ROOT, |
| 94 TimeoutMs: TimeoutMs, | 105 TimeoutMs: TimeoutMs, |
| 95 File: File, | 106 File: File, |
| 96 Error: Error, | 107 Error: Error, |
| 97 Event: Event, | 108 Event: Event, |
| 98 NaClPlugin: NaClPlugin, | 109 NaClPlugin: NaClPlugin, |
| 110 SessionSource: SessionSource, | |
| 99 UI_LANGUAGE: UI_LANGUAGE | 111 UI_LANGUAGE: UI_LANGUAGE |
| 100 }; | 112 }; |
| 101 | 113 |
| 102 }); | 114 }); |
| OLD | NEW |