| OLD | NEW |
| 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(Array.<string>): void} onMsg The function called when a | 15 /** @param {function(Array.<string>): void} onMsg The function called when a |
| 16 * message 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) {}; |
| OLD | NEW |