Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: chrome/browser/resources/hotword/nacl_manager.js

Issue 2900253006: WebUI: Fix more violations of no-extra-semi lint rule. (Closed)
Patch Set: clang-format Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * Class used to manage the state of the NaCl recognizer plugin. Handles all 9 * Class used to manage the state of the NaCl recognizer plugin. Handles all
10 * control of the NaCl plugin, including creation, start, stop, trigger, and 10 * control of the NaCl plugin, including creation, start, stop, trigger, and
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 * Whether the audio input stream is from a hotword stream. 75 * Whether the audio input stream is from a hotword stream.
76 * @private {boolean} 76 * @private {boolean}
77 */ 77 */
78 this.hotwordStream_ = hotwordStream; 78 this.hotwordStream_ = hotwordStream;
79 79
80 /** 80 /**
81 * Audio log of X seconds before hotword triggered. 81 * Audio log of X seconds before hotword triggered.
82 * @private {?Object} 82 * @private {?Object}
83 */ 83 */
84 this.preambleLog_ = null; 84 this.preambleLog_ = null;
85 }; 85 }
86 86
87 /** 87 /**
88 * States this manager can be in. Since messages to/from the plugin are 88 * States this manager can be in. Since messages to/from the plugin are
89 * asynchronous (and potentially queued), it's not possible to know what state 89 * asynchronous (and potentially queued), it's not possible to know what state
90 * the plugin is in. However, track a state machine for NaClManager based on 90 * the plugin is in. However, track a state machine for NaClManager based on
91 * what messages are sent/received. 91 * what messages are sent/received.
92 * @enum {number} 92 * @enum {number}
93 * @private 93 * @private
94 */ 94 */
95 NaClManager.ManagerState_ = { 95 NaClManager.ManagerState_ = {
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 case hotword.constants.NaClPlugin.SPEAKER_MODEL_SAVED: 602 case hotword.constants.NaClPlugin.SPEAKER_MODEL_SAVED:
603 this.handleSpeakerModelSaved_(); 603 this.handleSpeakerModelSaved_();
604 break; 604 break;
605 } 605 }
606 } 606 }
607 }; 607 };
608 608
609 return {NaClManager: NaClManager}; 609 return {NaClManager: NaClManager};
610 610
611 }); 611 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698