OLD | NEW |
---|---|
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
135 | 135 |
136 // Stops the speaker model training. | 136 // Stops the speaker model training. |
137 static void stopTraining(optional GenericDoneCallback callback); | 137 static void stopTraining(optional GenericDoneCallback callback); |
138 | 138 |
139 // Sets the audio history opt-in state. | 139 // Sets the audio history opt-in state. |
140 static void setAudioHistoryEnabled(boolean enabled, | 140 static void setAudioHistoryEnabled(boolean enabled, |
141 optional AudioHistoryCallback callback); | 141 optional AudioHistoryCallback callback); |
142 | 142 |
143 // Gets the audio history opt-in state. | 143 // Gets the audio history opt-in state. |
144 static void getAudioHistoryEnabled(optional AudioHistoryCallback callback); | 144 static void getAudioHistoryEnabled(optional AudioHistoryCallback callback); |
145 | |
146 // Gets the audio history opt-in state. | |
benwells
2015/03/20 07:01:39
I think you're comment needs updating...
kcarattini
2015/03/20 07:23:59
Done.
| |
147 static void speakerModelExistsResult(boolean exists, | |
148 optional GenericDoneCallback callback); | |
145 }; | 149 }; |
146 | 150 |
147 interface Events { | 151 interface Events { |
148 // Fired when the hotword detector enabled state should be changed. | 152 // Fired when the hotword detector enabled state should be changed. |
149 // This can be from various sources, e.g. a pref change or training | 153 // This can be from various sources, e.g. a pref change or training |
150 // a speaker model. | 154 // a speaker model. |
151 static void onEnabledChanged(); | 155 static void onEnabledChanged(); |
152 | 156 |
153 // Fired when the browser wants to start a hotword session. | 157 // Fired when the browser wants to start a hotword session. |
154 static void onHotwordSessionRequested(); | 158 static void onHotwordSessionRequested(); |
155 | 159 |
156 // Fired when the browser wants to stop the requested hotword session. | 160 // Fired when the browser wants to stop the requested hotword session. |
157 static void onHotwordSessionStopped(); | 161 static void onHotwordSessionStopped(); |
158 | 162 |
159 // Fired when the speaker model should be finalized. | 163 // Fired when the speaker model should be finalized. |
160 static void onFinalizeSpeakerModel(); | 164 static void onFinalizeSpeakerModel(); |
161 | 165 |
162 // Fired when the speaker model has been saved. | 166 // Fired when the speaker model has been saved. |
163 static void onSpeakerModelSaved(); | 167 static void onSpeakerModelSaved(); |
164 | 168 |
165 // Fired when a hotword has triggered. | 169 // Fired when a hotword has triggered. |
166 static void onHotwordTriggered(); | 170 static void onHotwordTriggered(); |
167 | 171 |
168 // Fired when the speaker model should be deleted. | 172 // Fired when the speaker model should be deleted. |
169 static void onDeleteSpeakerModel(); | 173 static void onDeleteSpeakerModel(); |
174 | |
175 // Fired when there is a request for whether the speaker model exists. | |
benwells
2015/03/20 07:01:38
I'd update this comment to be clearer, like 'fired
kcarattini
2015/03/20 07:24:00
Done.
| |
176 static void onSpeakerModelExists(); | |
170 }; | 177 }; |
171 }; | 178 }; |
OLD | NEW |