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

Side by Side Diff: remoting/webapp/me2mom/wcs_iq_client_proto.js

Issue 8336004: Improve web-app type safety. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // This file contains type definitions for the WCS IQ client. It is used only 5 // This file contains type definitions for the WCS IQ client. It is used only
6 // with JSCompiler to verify the type-correctness of our code. 6 // with JSCompiler to verify the type-correctness of our code.
7 7
8 /** @suppress {duplicate} */ 8 /** @suppress {duplicate} */
9 var remoting = remoting || {}; 9 var remoting = remoting || {};
10 10
11 /** @constructor 11 /** @constructor
12 */ 12 */
13 remoting.WcsIqClient = function() {}; 13 remoting.WcsIqClient = function() {};
14 14
15 /** @param {function(string): void} onMsg The function called when a message 15 /** @param {function(Array.<string>): void} onMsg The function called when a
16 * is received. 16 * message is received.
17 * @return {void} Nothing. */ 17 * @return {void} Nothing. */
18 remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {}; 18 remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {};
19 19
20 /** @return {void} Nothing. */ 20 /** @return {void} Nothing. */
21 remoting.WcsIqClient.prototype.connectChannel = function() {}; 21 remoting.WcsIqClient.prototype.connectChannel = function() {};
22 22
23 /** @param {string} stanza An IQ stanza. 23 /** @param {string} stanza An IQ stanza.
24 * @return {void} Nothing. */ 24 * @return {void} Nothing. */
25 remoting.WcsIqClient.prototype.sendIq = function(stanza) {}; 25 remoting.WcsIqClient.prototype.sendIq = function(stanza) {};
26 26
27 /** @param {string} token An OAuth2 access token. 27 /** @param {string} token An OAuth2 access token.
28 * @return {void} Nothing. */ 28 * @return {void} Nothing. */
29 remoting.WcsIqClient.prototype.updateAccessToken = function(token) {}; 29 remoting.WcsIqClient.prototype.updateAccessToken = function(token) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698