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

Side by Side Diff: remoting/webapp/crd/js/xmpp_login_handler.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/xmpp_connection.js ('k') | no next file » | 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 /**
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 /** @private */ 54 /** @private */
55 this.onHandshakeDoneCallback_ = onHandshakeDoneCallback; 55 this.onHandshakeDoneCallback_ = onHandshakeDoneCallback;
56 /** @private */ 56 /** @private */
57 this.onErrorCallback_ = onErrorCallback; 57 this.onErrorCallback_ = onErrorCallback;
58 58
59 /** @private */ 59 /** @private */
60 this.state_ = remoting.XmppLoginHandler.State.INIT; 60 this.state_ = remoting.XmppLoginHandler.State.INIT;
61 /** @private */ 61 /** @private */
62 this.jid_ = ''; 62 this.jid_ = '';
63 63
64 /** @type {remoting.XmppStreamParser} @private */ 64 /** @private {remoting.XmppStreamParser} */
65 this.streamParser_ = null; 65 this.streamParser_ = null;
66 } 66 }
67 67
68 /** @return {function(string, remoting.XmppStreamParser):void} */ 68 /** @return {function(string, remoting.XmppStreamParser):void} */
69 remoting.XmppLoginHandler.prototype.getHandshakeDoneCallbackForTesting = 69 remoting.XmppLoginHandler.prototype.getHandshakeDoneCallbackForTesting =
70 function() { 70 function() {
71 return this.onHandshakeDoneCallback_; 71 return this.onHandshakeDoneCallback_;
72 }; 72 };
73 73
74 /** 74 /**
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 * @private 286 * @private
287 */ 287 */
288 remoting.XmppLoginHandler.prototype.onError_ = function(error, text) { 288 remoting.XmppLoginHandler.prototype.onError_ = function(error, text) {
289 if (this.state_ != remoting.XmppLoginHandler.State.ERROR) { 289 if (this.state_ != remoting.XmppLoginHandler.State.ERROR) {
290 this.onErrorCallback_(error, text); 290 this.onErrorCallback_(error, text);
291 this.state_ = remoting.XmppLoginHandler.State.ERROR; 291 this.state_ = remoting.XmppLoginHandler.State.ERROR;
292 } else { 292 } else {
293 console.error(text); 293 console.error(text);
294 } 294 }
295 } 295 }
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/xmpp_connection.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698