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 cr.define('hotword', function() { | 5 cr.define('hotword', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * Trivial container class for session information. | 9 * Trivial container class for session information. |
10 * @param {!hotword.constants.SessionSource} source Source of the hotword | 10 * @param {!hotword.constants.SessionSource} source Source of the hotword |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 this.hotwordStatus_ = null; | 65 this.hotwordStatus_ = null; |
66 | 66 |
67 /** | 67 /** |
68 * NaCl plugin manager. | 68 * NaCl plugin manager. |
69 * @private {?hotword.NaClManager} | 69 * @private {?hotword.NaClManager} |
70 */ | 70 */ |
71 this.pluginManager_ = null; | 71 this.pluginManager_ = null; |
72 | 72 |
73 /** | 73 /** |
74 * Currently active hotwording sessions. | 74 * Currently active hotwording sessions. |
75 * @private {!Array.<Session_>} | 75 * @private {!Array<Session_>} |
76 */ | 76 */ |
77 this.sessions_ = []; | 77 this.sessions_ = []; |
78 | 78 |
79 /** | 79 /** |
80 * The mode to start the recognizer in. | 80 * The mode to start the recognizer in. |
81 * @private {!hotword.constants.RecognizerStartMode} | 81 * @private {!hotword.constants.RecognizerStartMode} |
82 */ | 82 */ |
83 this.startMode_ = hotword.constants.RecognizerStartMode.NORMAL; | 83 this.startMode_ = hotword.constants.RecognizerStartMode.NORMAL; |
84 | 84 |
85 /** | 85 /** |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 | 573 |
574 if (oldLocked != this.isLocked_) | 574 if (oldLocked != this.isLocked_) |
575 this.updateStateFromStatus_(); | 575 this.updateStateFromStatus_(); |
576 } | 576 } |
577 }; | 577 }; |
578 | 578 |
579 return { | 579 return { |
580 StateManager: StateManager | 580 StateManager: StateManager |
581 }; | 581 }; |
582 }); | 582 }); |
OLD | NEW |