OLD | NEW |
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 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * Interface abstracting the ClientPlugin functionality. | 7 * Interface abstracting the ClientPlugin functionality. |
8 */ | 8 */ |
9 | 9 |
10 'use strict'; | 10 'use strict'; |
11 | 11 |
12 /** @suppress {duplicate} */ | 12 /** @suppress {duplicate} */ |
13 var remoting = remoting || {}; | 13 var remoting = remoting || {}; |
14 | 14 |
15 /** | 15 /** |
16 * @interface | 16 * @interface |
17 * @extends {base.Disposable} | 17 * @extends {base.Disposable} |
18 */ | 18 */ |
19 remoting.ClientPlugin = function() {}; | 19 remoting.ClientPlugin = function() {}; |
20 | 20 |
21 /** | 21 /** |
22 * @return {remoting.HostDesktop} | 22 * @return {remoting.HostDesktop} |
23 */ | 23 */ |
24 remoting.ClientPlugin.prototype.hostDesktop = function() {}; | 24 remoting.ClientPlugin.prototype.hostDesktop = function() {}; |
25 | 25 |
26 /** | 26 /** |
| 27 * @return {remoting.ProtocolExtensionManager} |
| 28 */ |
| 29 remoting.ClientPlugin.prototype.extensions = function() {}; |
| 30 |
| 31 /** |
27 * @return {HTMLElement} The DOM element representing the remote session. | 32 * @return {HTMLElement} The DOM element representing the remote session. |
28 */ | 33 */ |
29 remoting.ClientPlugin.prototype.element = function() {}; | 34 remoting.ClientPlugin.prototype.element = function() {}; |
30 | 35 |
31 /** | 36 /** |
32 * @param {function(boolean):void} onDone Completion callback. | 37 * @param {function(boolean):void} onDone Completion callback. |
33 */ | 38 */ |
34 remoting.ClientPlugin.prototype.initialize = function(onDone) {}; | 39 remoting.ClientPlugin.prototype.initialize = function(onDone) {}; |
35 | 40 |
36 /** | 41 /** |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 function(ready) {}; | 229 function(ready) {}; |
225 | 230 |
226 /** | 231 /** |
227 * @param {!Array<string>} capabilities The set of capabilities negotiated | 232 * @param {!Array<string>} capabilities The set of capabilities negotiated |
228 * between the client and host. | 233 * between the client and host. |
229 */ | 234 */ |
230 remoting.ClientPlugin.ConnectionEventHandler.prototype.onSetCapabilities = | 235 remoting.ClientPlugin.ConnectionEventHandler.prototype.onSetCapabilities = |
231 function(capabilities) {}; | 236 function(capabilities) {}; |
232 | 237 |
233 /** | 238 /** |
234 * @param {string} type | |
235 * @param {string} data | |
236 */ | |
237 remoting.ClientPlugin.ConnectionEventHandler.prototype.onExtensionMessage = | |
238 function(type, data) {}; | |
239 | |
240 | |
241 /** | |
242 * @interface | 239 * @interface |
243 */ | 240 */ |
244 remoting.ClientPluginFactory = function() {}; | 241 remoting.ClientPluginFactory = function() {}; |
245 | 242 |
246 /** | 243 /** |
247 * @param {Element} container The container for the embed element. | 244 * @param {Element} container The container for the embed element. |
248 * @param {Array<string>} requiredCapabilities | 245 * @param {Array<string>} requiredCapabilities |
249 * @return {remoting.ClientPlugin} A new client plugin instance. | 246 * @return {remoting.ClientPlugin} A new client plugin instance. |
250 */ | 247 */ |
251 remoting.ClientPluginFactory.prototype.createPlugin = | 248 remoting.ClientPluginFactory.prototype.createPlugin = |
252 function(container, requiredCapabilities) {}; | 249 function(container, requiredCapabilities) {}; |
253 | 250 |
254 /** | 251 /** |
255 * Preload the plugin to make instantiation faster when the user tries | 252 * Preload the plugin to make instantiation faster when the user tries |
256 * to connect. | 253 * to connect. |
257 */ | 254 */ |
258 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 255 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
259 | 256 |
260 /** | 257 /** |
261 * @type {remoting.ClientPluginFactory} | 258 * @type {remoting.ClientPluginFactory} |
262 */ | 259 */ |
263 remoting.ClientPlugin.factory = null; | 260 remoting.ClientPlugin.factory = null; |
OLD | NEW |