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

Side by Side Diff: chrome/browser/resources/hotword/constants.js

Issue 687323003: Adds a Training Manager to the hotword extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tp3-api
Patch Set: Rebase Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/hotword/base_session_manager.js ('k') | chrome/browser/resources/hotword/manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698