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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 | 175 |
176 // Fired when a hotword has triggered. | 176 // Fired when a hotword has triggered. |
177 static void onHotwordTriggered(); | 177 static void onHotwordTriggered(); |
178 | 178 |
179 // Fired when the speaker model should be deleted. | 179 // Fired when the speaker model should be deleted. |
180 static void onDeleteSpeakerModel(); | 180 static void onDeleteSpeakerModel(); |
181 | 181 |
182 // Fired when the browser wants to find out whether the speaker model | 182 // Fired when the browser wants to find out whether the speaker model |
183 // exists. | 183 // exists. |
184 static void onSpeakerModelExists(); | 184 static void onSpeakerModelExists(); |
| 185 |
| 186 // Fired when the microphone state changes. |
| 187 static void onMicrophoneStateChanged(boolean enabled); |
185 }; | 188 }; |
186 }; | 189 }; |
OLD | NEW |