| 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 [use_movable_types=true] 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 185 |
| 186 // Fired when the microphone state changes. | 186 // Fired when the microphone state changes. |
| 187 static void onMicrophoneStateChanged(boolean enabled); | 187 static void onMicrophoneStateChanged(boolean enabled); |
| 188 }; | 188 }; |
| 189 }; | 189 }; |
| OLD | NEW |