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 cr.define('hotword.constants', function() { | 5 cr.define('hotword.constants', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Hotword data shared module extension's ID. | 9 * Hotword data shared module extension's ID. |
10 * @const {string} | 10 * @const {string} |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 WAKE_UP_HELPER: 'wuh' | 114 WAKE_UP_HELPER: 'wuh' |
115 }; | 115 }; |
116 | 116 |
117 /** | 117 /** |
118 * Source of a hotwording session request. | 118 * Source of a hotwording session request. |
119 * @enum {string} | 119 * @enum {string} |
120 */ | 120 */ |
121 var SessionSource = { | 121 var SessionSource = { |
122 LAUNCHER: 'launcher', | 122 LAUNCHER: 'launcher', |
123 NTP: 'ntp', | 123 NTP: 'ntp', |
124 ALWAYS: 'always' | 124 ALWAYS: 'always', |
| 125 TRAINING: 'training' |
125 }; | 126 }; |
126 | 127 |
127 /** | 128 /** |
128 * MediaStream open success/errors to be reported via UMA. | 129 * MediaStream open success/errors to be reported via UMA. |
129 * DO NOT remove or renumber values in this enum. Only add new ones. | 130 * DO NOT remove or renumber values in this enum. Only add new ones. |
130 * @enum {number} | 131 * @enum {number} |
131 */ | 132 */ |
132 var UmaMediaStreamOpenResult = { | 133 var UmaMediaStreamOpenResult = { |
133 SUCCESS: 0, | 134 SUCCESS: 0, |
134 UNKNOWN: 1, | 135 UNKNOWN: 1, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 NaClPlugin: NaClPlugin, | 208 NaClPlugin: NaClPlugin, |
208 SessionSource: SessionSource, | 209 SessionSource: SessionSource, |
209 TimeoutMs: TimeoutMs, | 210 TimeoutMs: TimeoutMs, |
210 UmaMediaStreamOpenResult: UmaMediaStreamOpenResult, | 211 UmaMediaStreamOpenResult: UmaMediaStreamOpenResult, |
211 UmaMetrics: UmaMetrics, | 212 UmaMetrics: UmaMetrics, |
212 UmaNaClMessageTimeout: UmaNaClMessageTimeout, | 213 UmaNaClMessageTimeout: UmaNaClMessageTimeout, |
213 UmaNaClPluginLoadResult: UmaNaClPluginLoadResult | 214 UmaNaClPluginLoadResult: UmaNaClPluginLoadResult |
214 }; | 215 }; |
215 | 216 |
216 }); | 217 }); |
OLD | NEW |