| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 various remoting classes. | 5 // This file contains type definitions for various remoting classes. |
| 6 // It is used only with JSCompiler to verify the type-correctness of our code. | 6 // It is used only 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 | 11 |
| 12 /** @constructor | 12 /** @constructor |
| 13 */ | 13 */ |
| 14 remoting.WcsIqClient = function() {}; | 14 remoting.WcsIqClient = function() {}; |
| 15 | 15 |
| 16 /** @param {function(Array.<string>): void} onMsg The function called when a | 16 /** @param {function(Array<string>): void} onMsg The function called when a |
| 17 * message is received. | 17 * message is received. |
| 18 * @return {void} Nothing. */ | 18 * @return {void} Nothing. */ |
| 19 remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {}; | 19 remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {}; |
| 20 | 20 |
| 21 /** @return {void} Nothing. */ | 21 /** @return {void} Nothing. */ |
| 22 remoting.WcsIqClient.prototype.connectChannel = function() {}; | 22 remoting.WcsIqClient.prototype.connectChannel = function() {}; |
| 23 | 23 |
| 24 /** @param {string} stanza An IQ stanza. | 24 /** @param {string} stanza An IQ stanza. |
| 25 * @return {void} Nothing. */ | 25 * @return {void} Nothing. */ |
| 26 remoting.WcsIqClient.prototype.sendIq = function(stanza) {}; | 26 remoting.WcsIqClient.prototype.sendIq = function(stanza) {}; |
| 27 | 27 |
| 28 /** @param {string} token An OAuth2 access token. | 28 /** @param {string} token An OAuth2 access token. |
| 29 * @return {void} Nothing. */ | 29 * @return {void} Nothing. */ |
| 30 remoting.WcsIqClient.prototype.updateAccessToken = function(token) {}; | 30 remoting.WcsIqClient.prototype.updateAccessToken = function(token) {}; |
| OLD | NEW |