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

Side by Side Diff: chrome/common/extensions/api/hotword_private.idl

Issue 1011813006: Make availability of hotword hardware known to hotword component extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 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 // The <code>chrome.hotwordPrivate</code> API allows extensions to access and 5 // The <code>chrome.hotwordPrivate</code> API allows extensions to access and
6 // mutate the preference for enabling hotword search. It also provides 6 // mutate the preference for enabling hotword search. It also provides
7 // information on whether the hotword search is available. This API provides an 7 // information on whether the hotword search is available. This API provides an
8 // event interface to transmit to the extension a signal that the preference fo 8 // event interface to transmit to the extension a signal that the preference fo
9 // hotword search has change. 9 // hotword search has change.
10 // 10 //
(...skipping 21 matching lines...) Expand all
32 boolean experimentalHotwordEnabled; 32 boolean experimentalHotwordEnabled;
33 33
34 // Whether always-on hotwording is enabled. 34 // Whether always-on hotwording is enabled.
35 boolean alwaysOnEnabled; 35 boolean alwaysOnEnabled;
36 36
37 // Whether training mode is enabled. 37 // Whether training mode is enabled.
38 boolean trainingEnabled; 38 boolean trainingEnabled;
39 39
40 // Whether the user corresponding to this profile is the active user. 40 // Whether the user corresponding to this profile is the active user.
41 boolean userIsActive; 41 boolean userIsActive;
42
43 // Whether the hotword stream is available if requested.
44 boolean hotwordStreamAvailable;
kcarattini 2015/03/17 00:47:15 Why not call this hotwordHardwareAvailable? That's
Anand Mistry (off Chromium) 2015/03/17 02:54:47 Done.
42 }; 45 };
43 46
44 dictionary LaunchState { 47 dictionary LaunchState {
45 // TODO(kcarattini): Consider adding more variables here, 48 // TODO(kcarattini): Consider adding more variables here,
46 // such as the available state of the hotword service. 49 // such as the available state of the hotword service.
47 50
48 // The mode that the Hotword Audio Verification app was launched in. 51 // The mode that the Hotword Audio Verification app was launched in.
49 long launchMode; 52 long launchMode;
50 }; 53 };
51 54
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Fired when the speaker model has been saved. 162 // Fired when the speaker model has been saved.
160 static void onSpeakerModelSaved(); 163 static void onSpeakerModelSaved();
161 164
162 // Fired when a hotword has triggered. 165 // Fired when a hotword has triggered.
163 static void onHotwordTriggered(); 166 static void onHotwordTriggered();
164 167
165 // Fired when the speaker model should be deleted. 168 // Fired when the speaker model should be deleted.
166 static void onDeleteSpeakerModel(); 169 static void onDeleteSpeakerModel();
167 }; 170 };
168 }; 171 };
OLDNEW
« chrome/browser/search/hotword_service.h ('K') | « chrome/browser/search/hotword_service_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698