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
3 // found in the LICENSE file.
5 cr.define('hotword', function() {
9 * Class used to manage always-on hotwording. Automatically starts hotwording
10 * on startup, if always-on is enabled, and starts/stops hotwording at
12 * @param {!hotword.StateManager} stateManager
14 * @extends {hotword.BaseSessionManager}
16 function AlwaysOnManager(stateManager) {
17 hotword.BaseSessionManager.call(this,
19 hotword.constants.SessionSource.ALWAYS);
22 AlwaysOnManager.prototype = {
23 __proto__: hotword.BaseSessionManager.prototype,
27 return this.stateManager.isAlwaysOnEnabled();
31 updateListeners: function() {
32 hotword.BaseSessionManager.prototype.updateListeners.call(this);
39 AlwaysOnManager: AlwaysOnManager