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 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 /** @type {string} */ remoting.HostPlugin.prototype.supportedFeatures; | 156 /** @type {string} */ remoting.HostPlugin.prototype.supportedFeatures; |
157 | 157 |
158 | 158 |
159 /** @constructor | 159 /** @constructor |
160 * @extends HTMLEmbedElement | 160 * @extends HTMLEmbedElement |
161 */ | 161 */ |
162 remoting.ViewerPlugin = function() { }; | 162 remoting.ViewerPlugin = function() { }; |
163 | 163 |
164 /** @param {string} message The message to send to the host. */ | 164 /** @param {string} message The message to send to the host. */ |
165 remoting.ViewerPlugin.prototype.postMessage = function(message) {}; | 165 remoting.ViewerPlugin.prototype.postMessage = function(message) {}; |
| 166 |
| 167 |
| 168 /** @constructor |
| 169 */ |
| 170 remoting.WcsIqClient = function() {}; |
| 171 |
| 172 /** @param {function(Array.<string>): void} onMsg The function called when a |
| 173 * message is received. |
| 174 * @return {void} Nothing. */ |
| 175 remoting.WcsIqClient.prototype.setOnMessage = function(onMsg) {}; |
| 176 |
| 177 /** @return {void} Nothing. */ |
| 178 remoting.WcsIqClient.prototype.connectChannel = function() {}; |
| 179 |
| 180 /** @param {string} stanza An IQ stanza. |
| 181 * @return {void} Nothing. */ |
| 182 remoting.WcsIqClient.prototype.sendIq = function(stanza) {}; |
| 183 |
| 184 /** @param {string} token An OAuth2 access token. |
| 185 * @return {void} Nothing. */ |
| 186 remoting.WcsIqClient.prototype.updateAccessToken = function(token) {}; |
OLD | NEW |