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

Side by Side Diff: remoting/webapp/crd/js/host_install_dialog.js

Issue 983023002: [Chromoting] Use compact notation for javascript @private types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « remoting/webapp/crd/js/host_daemon_facade.js ('k') | remoting/webapp/crd/js/host_installer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 /** 10 /**
11 * HostInstallDialog prompts the user to install host components. 11 * HostInstallDialog prompts the user to install host components.
12 * 12 *
13 * @constructor 13 * @constructor
14 */ 14 */
15 remoting.HostInstallDialog = function() { 15 remoting.HostInstallDialog = function() {
16 this.continueInstallButton_ = document.getElementById( 16 this.continueInstallButton_ = document.getElementById(
17 'host-install-continue'); 17 'host-install-continue');
18 this.cancelInstallButton_ = document.getElementById( 18 this.cancelInstallButton_ = document.getElementById(
19 'host-install-dismiss'); 19 'host-install-dismiss');
20 this.retryInstallButton_ = document.getElementById( 20 this.retryInstallButton_ = document.getElementById(
21 'host-install-retry'); 21 'host-install-retry');
22 22
23 this.onOkClickedHandler_ = this.onOkClicked_.bind(this); 23 this.onOkClickedHandler_ = this.onOkClicked_.bind(this);
24 this.onCancelClickedHandler_ = this.onCancelClicked_.bind(this); 24 this.onCancelClickedHandler_ = this.onCancelClicked_.bind(this);
25 this.onRetryClickedHandler_ = this.onRetryClicked_.bind(this); 25 this.onRetryClickedHandler_ = this.onRetryClicked_.bind(this);
26 26
27 this.continueInstallButton_.disabled = false; 27 this.continueInstallButton_.disabled = false;
28 this.cancelInstallButton_.disabled = false; 28 this.cancelInstallButton_.disabled = false;
29 29
30 /** @private*/ 30 /** @private */
31 this.onDoneHandler_ = function() {}; 31 this.onDoneHandler_ = function() {};
32 32
33 /** @param {remoting.Error} error @private */ 33 /**
34 * @param {remoting.Error} error
35 * @private
36 */
34 this.onErrorHandler_ = function(error) {}; 37 this.onErrorHandler_ = function(error) {};
35 38
36 /** 39 /** @private {remoting.HostInstaller} */
37 * @type {remoting.HostInstaller}
38 * @private
39 */
40 this.hostInstaller_ = new remoting.HostInstaller(); 40 this.hostInstaller_ = new remoting.HostInstaller();
41 }; 41 };
42 42
43 /** 43 /**
44 * Starts downloading host components and shows installation prompt. 44 * Starts downloading host components and shows installation prompt.
45 * 45 *
46 * @param {function():void} onDone Callback called when user clicks Ok, 46 * @param {function():void} onDone Callback called when user clicks Ok,
47 * presumably after installing the host. The handler must verify that the host 47 * presumably after installing the host. The handler must verify that the host
48 * has been installed and call tryAgain() otherwise. 48 * has been installed and call tryAgain() otherwise.
49 * @param {function(remoting.Error):void} onError Callback called when user 49 * @param {function(remoting.Error):void} onError Callback called when user
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 remoting.HostInstallDialog.prototype.onRetryClicked_ = function() { 114 remoting.HostInstallDialog.prototype.onRetryClicked_ = function() {
115 this.retryInstallButton_.removeEventListener( 115 this.retryInstallButton_.removeEventListener(
116 'click', this.onRetryClickedHandler_.bind(this), false); 116 'click', this.onRetryClickedHandler_.bind(this), false);
117 this.continueInstallButton_.addEventListener( 117 this.continueInstallButton_.addEventListener(
118 'click', this.onOkClickedHandler_, false); 118 'click', this.onOkClickedHandler_, false);
119 this.cancelInstallButton_.addEventListener( 119 this.cancelInstallButton_.addEventListener(
120 'click', this.onCancelClickedHandler_, false); 120 'click', this.onCancelClickedHandler_, false);
121 remoting.setMode(remoting.AppMode.HOST_INSTALL_PROMPT); 121 remoting.setMode(remoting.AppMode.HOST_INSTALL_PROMPT);
122 }; 122 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/host_daemon_facade.js ('k') | remoting/webapp/crd/js/host_installer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698