| OLD | NEW |
| 1 // Copyright (c) 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 cr.define('hotword', function() { | 5 cr.define('hotword', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * Class to manage hotwording state. Starts/stops the hotword detector based | 9 * Class to manage hotwording state. Starts/stops the hotword detector based |
| 10 * on user settings, session requests, and any other factors that play into | 10 * on user settings, session requests, and any other factors that play into |
| 11 * whether or not hotwording should be running. | 11 * whether or not hotwording should be running. |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 this.sessionSource_ = null; | 275 this.sessionSource_ = null; |
| 276 this.sessionStartedCb_ = null; | 276 this.sessionStartedCb_ = null; |
| 277 this.updateStateFromStatus_(); | 277 this.updateStateFromStatus_(); |
| 278 } | 278 } |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 return { | 281 return { |
| 282 StateManager: StateManager | 282 StateManager: StateManager |
| 283 }; | 283 }; |
| 284 }); | 284 }); |
| OLD | NEW |