| 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 [nodoc] 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 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 // Fired when the speaker model should be finalized. | 156 // Fired when the speaker model should be finalized. |
| 157 static void onFinalizeSpeakerModel(); | 157 static void onFinalizeSpeakerModel(); |
| 158 | 158 |
| 159 // Fired when the speaker model has been saved. | 159 // Fired when the speaker model has been saved. |
| 160 static void onSpeakerModelSaved(); | 160 static void onSpeakerModelSaved(); |
| 161 | 161 |
| 162 // Fired when a hotword has triggered. | 162 // Fired when a hotword has triggered. |
| 163 static void onHotwordTriggered(); | 163 static void onHotwordTriggered(); |
| 164 }; | 164 }; |
| 165 }; | 165 }; |
| OLD | NEW |