| 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 24 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |