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

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

Issue 1027683002: Hotword Private API: Add function and event to query the existence of a speaker model (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Upload remaining test files 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 // Stops the speaker model training. 143 // Stops the speaker model training.
144 static void stopTraining(optional GenericDoneCallback callback); 144 static void stopTraining(optional GenericDoneCallback callback);
145 145
146 // Sets the audio history opt-in state. 146 // Sets the audio history opt-in state.
147 static void setAudioHistoryEnabled(boolean enabled, 147 static void setAudioHistoryEnabled(boolean enabled,
148 optional AudioHistoryCallback callback); 148 optional AudioHistoryCallback callback);
149 149
150 // Gets the audio history opt-in state. 150 // Gets the audio history opt-in state.
151 static void getAudioHistoryEnabled(optional AudioHistoryCallback callback); 151 static void getAudioHistoryEnabled(optional AudioHistoryCallback callback);
152
153 // Sends the result of whether a speaker model exists to the browser.
154 static void speakerModelExistsResult(boolean exists,
155 optional GenericDoneCallback callback);
152 }; 156 };
153 157
154 interface Events { 158 interface Events {
155 // Fired when the hotword detector enabled state should be changed. 159 // Fired when the hotword detector enabled state should be changed.
156 // This can be from various sources, e.g. a pref change or training 160 // This can be from various sources, e.g. a pref change or training
157 // a speaker model. 161 // a speaker model.
158 static void onEnabledChanged(); 162 static void onEnabledChanged();
159 163
160 // Fired when the browser wants to start a hotword session. 164 // Fired when the browser wants to start a hotword session.
161 static void onHotwordSessionRequested(); 165 static void onHotwordSessionRequested();
162 166
163 // Fired when the browser wants to stop the requested hotword session. 167 // Fired when the browser wants to stop the requested hotword session.
164 static void onHotwordSessionStopped(); 168 static void onHotwordSessionStopped();
165 169
166 // Fired when the speaker model should be finalized. 170 // Fired when the speaker model should be finalized.
167 static void onFinalizeSpeakerModel(); 171 static void onFinalizeSpeakerModel();
168 172
169 // Fired when the speaker model has been saved. 173 // Fired when the speaker model has been saved.
170 static void onSpeakerModelSaved(); 174 static void onSpeakerModelSaved();
171 175
172 // Fired when a hotword has triggered. 176 // Fired when a hotword has triggered.
173 static void onHotwordTriggered(); 177 static void onHotwordTriggered();
174 178
175 // Fired when the speaker model should be deleted. 179 // Fired when the speaker model should be deleted.
176 static void onDeleteSpeakerModel(); 180 static void onDeleteSpeakerModel();
181
182 // Fired when the browser wants to find out whether the speaker model
183 // exists.
184 static void onSpeakerModelExists();
177 }; 185 };
178 }; 186 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698