Chromium Code Reviews| 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 // |
| 11 // For an FYI, visit http://goo.gl/AyHbkH | 11 // For an FYI, visit http://goo.gl/AyHbkH |
| 12 | 12 |
| 13 namespace hotwordPrivate { | 13 namespace hotwordPrivate { |
| 14 | 14 |
| 15 dictionary StatusDetails { | 15 dictionary StatusDetails { |
| 16 // Whether the hotword preference has been set. | 16 // Whether the hotword preference has been set. |
| 17 boolean enabledSet; | 17 boolean enabledSet; |
| 18 | 18 |
| 19 // If the hotword extension is enabled. Will always be false if |available| | 19 // If the hotword extension is enabled. Will always be false if |available| |
| 20 // is false. | 20 // is false. |
| 21 boolean enabled; | 21 boolean enabled; |
| 22 | 22 |
| 23 // Whether the hotword extension is available to be enabled | 23 // Whether the hotword extension is available to be enabled |
| 24 boolean available; | 24 boolean available; |
| 25 | 25 |
| 26 // Whether always-on is avaialable to be enabled | |
|
benwells
2015/03/17 03:02:55
Nit: available spelling
kcarattini
2015/03/17 04:22:17
Done.
| |
| 27 boolean alwaysOnAvailable; | |
| 28 | |
| 26 // Whether the sound of "Ok, Google" plus a few seconds before is sent | 29 // Whether the sound of "Ok, Google" plus a few seconds before is sent |
| 27 // back to Google. | 30 // back to Google. |
| 28 boolean audioLoggingEnabled; | 31 boolean audioLoggingEnabled; |
| 29 | 32 |
| 30 // Whether experimental hotwording functionality is enabled. Mirrors the | 33 // Whether experimental hotwording functionality is enabled. Mirrors the |
| 31 // "enable-experimental-hotwording" flag. | 34 // "enable-experimental-hotwording" flag. |
| 32 boolean experimentalHotwordEnabled; | 35 boolean experimentalHotwordEnabled; |
| 33 | 36 |
| 34 // Whether always-on hotwording is enabled. | 37 // Whether always-on hotwording is enabled. |
| 35 boolean alwaysOnEnabled; | 38 boolean alwaysOnEnabled; |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 // Fired when the speaker model has been saved. | 162 // Fired when the speaker model has been saved. |
| 160 static void onSpeakerModelSaved(); | 163 static void onSpeakerModelSaved(); |
| 161 | 164 |
| 162 // Fired when a hotword has triggered. | 165 // Fired when a hotword has triggered. |
| 163 static void onHotwordTriggered(); | 166 static void onHotwordTriggered(); |
| 164 | 167 |
| 165 // Fired when the speaker model should be deleted. | 168 // Fired when the speaker model should be deleted. |
| 166 static void onDeleteSpeakerModel(); | 169 static void onDeleteSpeakerModel(); |
| 167 }; | 170 }; |
| 168 }; | 171 }; |
| OLD | NEW |