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

Side by Side Diff: remoting/webapp/host_controller.js

Issue 291133004: Automatic host installation for IT2Me on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CR feedback. Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 /** @constructor */ 10 /** @constructor */
11 remoting.HostController = function() { 11 remoting.HostController = function() {
12 this.hostDispatcher_ = this.createDispatcher_(); 12 this.hostDispatcher_ = this.createDispatcher_();
13 }; 13 };
14 14
15 /**
16 * @return {remoting.HostDispatcher}
17 */
18 remoting.HostController.prototype.getDispatcher = function() {
19 return this.hostDispatcher_;
20 };
21
15 // Note that the values in the enums below are copied from 22 // Note that the values in the enums below are copied from
16 // daemon_controller.h and must be kept in sync. 23 // daemon_controller.h and must be kept in sync.
17 /** @enum {number} */ 24 /** @enum {number} */
18 remoting.HostController.State = { 25 remoting.HostController.State = {
19 NOT_IMPLEMENTED: -1, 26 NOT_IMPLEMENTED: -1,
20 NOT_INSTALLED: 0, 27 NOT_INSTALLED: 0,
21 INSTALLING: 1, 28 INSTALLING: 1,
22 STOPPED: 2, 29 STOPPED: 2,
23 STARTING: 3, 30 STARTING: 3,
24 STARTED: 4, 31 STARTED: 4,
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 /** 533 /**
527 * Returns true if the NPAPI plugin is being used. 534 * Returns true if the NPAPI plugin is being used.
528 * @return {boolean} 535 * @return {boolean}
529 */ 536 */
530 remoting.HostController.prototype.usingNpapiPlugin = function() { 537 remoting.HostController.prototype.usingNpapiPlugin = function() {
531 return this.hostDispatcher_.usingNpapiPlugin(); 538 return this.hostDispatcher_.usingNpapiPlugin();
532 } 539 }
533 540
534 /** @type {remoting.HostController} */ 541 /** @type {remoting.HostController} */
535 remoting.hostController = null; 542 remoting.hostController = null;
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/host_dispatcher.js » ('j') | remoting/webapp/host_install_dialog.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698