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

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: Rebase 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
« no previous file with comments | « chrome/browser/search/hotword_service_factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
35 boolean audioLoggingEnabled; 35 boolean audioLoggingEnabled;
36 36
37 // Whether always-on hotwording is enabled. 37 // Whether always-on hotwording is enabled.
38 boolean alwaysOnEnabled; 38 boolean alwaysOnEnabled;
39 39
40 // Whether training mode is enabled. 40 // Whether training mode is enabled.
41 boolean trainingEnabled; 41 boolean trainingEnabled;
42 42
43 // Whether the user corresponding to this profile is the active user. 43 // Whether the user corresponding to this profile is the active user.
44 boolean userIsActive; 44 boolean userIsActive;
45
46 // Whether hotword hardware is available if requested.
47 boolean hotwordHardwareAvailable;
45 }; 48 };
46 49
47 dictionary LaunchState { 50 dictionary LaunchState {
48 // TODO(kcarattini): Consider adding more variables here, 51 // TODO(kcarattini): Consider adding more variables here,
49 // such as the available state of the hotword service. 52 // such as the available state of the hotword service.
50 53
51 // The mode that the Hotword Audio Verification app was launched in. 54 // The mode that the Hotword Audio Verification app was launched in.
52 long launchMode; 55 long launchMode;
53 }; 56 };
54 57
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Fired when the speaker model has been saved. 169 // Fired when the speaker model has been saved.
167 static void onSpeakerModelSaved(); 170 static void onSpeakerModelSaved();
168 171
169 // Fired when a hotword has triggered. 172 // Fired when a hotword has triggered.
170 static void onHotwordTriggered(); 173 static void onHotwordTriggered();
171 174
172 // Fired when the speaker model should be deleted. 175 // Fired when the speaker model should be deleted.
173 static void onDeleteSpeakerModel(); 176 static void onDeleteSpeakerModel();
174 }; 177 };
175 }; 178 };
OLDNEW
« no previous file with comments | « 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