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

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: 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
« no previous file with comments | « no previous file | chrome/browser/resources/hotword/manager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/hotword/manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698