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

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

Issue 557193002: Start and stop the hotword detector when the user opens/closes the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused constants. Created 6 years, 3 months 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 (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
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 };
91
92
Dan Beam 2014/09/11 17:56:23 general nit: we use 1 \n between top-level members
Anand Mistry (off Chromium) 2014/09/12 00:43:33 Fixed for the whole file.
93 /**
85 * The browser UI language. 94 * The browser UI language.
86 * @const {string} 95 * @const {string}
87 */ 96 */
88 var UI_LANGUAGE = (chrome.i18n && chrome.i18n.getUILanguage) ? 97 var UI_LANGUAGE = (chrome.i18n && chrome.i18n.getUILanguage) ?
89 chrome.i18n.getUILanguage() : ''; 98 chrome.i18n.getUILanguage() : '';
90 99
91 return { 100 return {
92 SHARED_MODULE_ID: SHARED_MODULE_ID, 101 SHARED_MODULE_ID: SHARED_MODULE_ID,
93 SHARED_MODULE_ROOT: SHARED_MODULE_ROOT, 102 SHARED_MODULE_ROOT: SHARED_MODULE_ROOT,
94 TimeoutMs: TimeoutMs, 103 TimeoutMs: TimeoutMs,
95 File: File, 104 File: File,
96 Error: Error, 105 Error: Error,
97 Event: Event, 106 Event: Event,
98 NaClPlugin: NaClPlugin, 107 NaClPlugin: NaClPlugin,
108 SessionSource: SessionSource,
99 UI_LANGUAGE: UI_LANGUAGE 109 UI_LANGUAGE: UI_LANGUAGE
100 }; 110 };
101 111
102 }); 112 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/hotword/manager.js » ('j') | chrome/browser/resources/hotword/state_manager.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698