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 the interaction between hotwording and the launcher
11 * @param {!hotword.StateManager} stateManager
13 * @extends {hotword.BaseSessionManager}
15 function LauncherManager(stateManager) {
16 hotword.BaseSessionManager.call(this,
18 hotword.constants.SessionSource.LAUNCHER);
21 LauncherManager.prototype = {
22 __proto__: hotword.BaseSessionManager.prototype,
26 return this.stateManager.isSometimesOnEnabled();
30 onSessionStop: function() {
31 chrome.hotwordPrivate.setHotwordSessionState(false, function() {});
36 LauncherManager: LauncherManager