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

Side by Side Diff: remoting/webapp/crd/js/desktop_remoting.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
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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * This class implements the functionality that is specific to desktop 7 * This class implements the functionality that is specific to desktop
8 * remoting ("Chromoting" or CRD). 8 * remoting ("Chromoting" or CRD).
9 */ 9 */
10 10
11 'use strict'; 11 'use strict';
12 12
13 /** @suppress {duplicate} */ 13 /** @suppress {duplicate} */
14 var remoting = remoting || {}; 14 var remoting = remoting || {};
15 15
16 /** 16 /**
17 * @param {remoting.Application} app The main app that owns this delegate. 17 * @param {remoting.Application} app The main app that owns this delegate.
18 * @constructor 18 * @constructor
19 * @implements {remoting.Application.Delegate} 19 * @implements {remoting.Application.Delegate}
20 */ 20 */
21 remoting.DesktopRemoting = function(app) { 21 remoting.DesktopRemoting = function(app) {
22 /** 22 /**
23 * TODO(garykac): Remove this reference to the Application. It's only 23 * TODO(garykac): Remove this reference to the Application. It's only
24 * needed to get the current mode when reporting errors. So we should be 24 * needed to get the current mode when reporting errors. So we should be
25 * able to refactor and remove this reference cycle. 25 * able to refactor and remove this reference cycle.
26 * 26 *
27 * @type {remoting.Application} 27 * @private {remoting.Application}
28 * @private
29 */ 28 */
30 this.app_ = app; 29 this.app_ = app;
31 app.setDelegate(this); 30 app.setDelegate(this);
32 31
33 /** 32 /**
34 * Whether to refresh the JID and retry the connection if the current JID 33 * Whether to refresh the JID and retry the connection if the current JID
35 * is offline. 34 * is offline.
36 * 35 *
37 * @type {boolean} 36 * @private {boolean}
38 * @private
39 */ 37 */
40 this.refreshHostJidIfOffline_ = true; 38 this.refreshHostJidIfOffline_ = true;
41 }; 39 };
42 40
43 /** 41 /**
44 * Display the user's email address and allow access to the rest of the app, 42 * Display the user's email address and allow access to the rest of the app,
45 * including parsing URL parameters. 43 * including parsing URL parameters.
46 * 44 *
47 * @param {string} email The user's email address. 45 * @param {string} email The user's email address.
48 * @param {string} fullName The user's full name. This is always null since 46 * @param {string} fullName The user's full name. This is always null since
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 l10n.localizeElementFromTag(errorDiv, /** @type {string} */ (errorTag)); 308 l10n.localizeElementFromTag(errorDiv, /** @type {string} */ (errorTag));
311 309
312 var mode = remoting.clientSession ? remoting.desktopConnectedView.getMode() 310 var mode = remoting.clientSession ? remoting.desktopConnectedView.getMode()
313 : this.app_.getSessionConnector().getConnectionMode(); 311 : this.app_.getSessionConnector().getConnectionMode();
314 if (mode == remoting.DesktopConnectedView.Mode.IT2ME) { 312 if (mode == remoting.DesktopConnectedView.Mode.IT2ME) {
315 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME); 313 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME);
316 } else { 314 } else {
317 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME); 315 remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME);
318 } 316 }
319 }; 317 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/desktop_connected_view.js ('k') | remoting/webapp/crd/js/dns_blackhole_checker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698