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'; |
(...skipping 26 matching lines...) Expand all Loading... |
37 * @return {number} The y-DPI of the remote desktop. | 37 * @return {number} The y-DPI of the remote desktop. |
38 */ | 38 */ |
39 remoting.ClientPlugin.prototype.getDesktopYDpi = function() {}; | 39 remoting.ClientPlugin.prototype.getDesktopYDpi = function() {}; |
40 | 40 |
41 /** | 41 /** |
42 * @return {HTMLElement} The DOM element representing the remote session. | 42 * @return {HTMLElement} The DOM element representing the remote session. |
43 */ | 43 */ |
44 remoting.ClientPlugin.prototype.element = function() {}; | 44 remoting.ClientPlugin.prototype.element = function() {}; |
45 | 45 |
46 /** | 46 /** |
47 * @param {function():void} onDone Completion callback. | 47 * @param {function(boolean):void} onDone Completion callback. |
48 */ | 48 */ |
49 remoting.ClientPlugin.prototype.initialize = function(onDone) {}; | 49 remoting.ClientPlugin.prototype.initialize = function(onDone) {}; |
50 | 50 |
51 /** | 51 /** |
52 * @param {string} hostJid The jid of the host to connect to. | 52 * @param {string} hostJid The jid of the host to connect to. |
53 * @param {string} hostPublicKey The base64 encoded version of the host's | 53 * @param {string} hostPublicKey The base64 encoded version of the host's |
54 * public key. | 54 * public key. |
55 * @param {string} localJid Local jid. | 55 * @param {string} localJid Local jid. |
56 * @param {string} sharedSecret The access code for IT2Me or the PIN | 56 * @param {string} sharedSecret The access code for IT2Me or the PIN |
57 * for Me2Me. | 57 * for Me2Me. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 function(handler) {}; | 216 function(handler) {}; |
217 | 217 |
218 /** | 218 /** |
219 * @param {function():void} handler Callback for desktop size change | 219 * @param {function():void} handler Callback for desktop size change |
220 * notifications. | 220 * notifications. |
221 */ | 221 */ |
222 remoting.ClientPlugin.prototype.setDesktopSizeUpdateHandler = | 222 remoting.ClientPlugin.prototype.setDesktopSizeUpdateHandler = |
223 function(handler) {}; | 223 function(handler) {}; |
224 | 224 |
225 /** | 225 /** |
226 * @param {function():void} handler Callback for desktop shape change | 226 * @param {function(Array.<Array.<number>>):void} handler Callback for desktop |
227 * notifications. | 227 * shape change notifications. |
228 */ | 228 */ |
229 remoting.ClientPlugin.prototype.setDesktopShapeUpdateHandler = | 229 remoting.ClientPlugin.prototype.setDesktopShapeUpdateHandler = |
230 function(handler) {}; | 230 function(handler) {}; |
231 | 231 |
232 /** | 232 /** |
233 * @param {function(!Array.<string>):void} handler Callback to inform of | 233 * @param {function(!Array.<string>):void} handler Callback to inform of |
234 * capabilities negotiated between host and client. | 234 * capabilities negotiated between host and client. |
235 */ | 235 */ |
236 remoting.ClientPlugin.prototype.setCapabilitiesHandler = | 236 remoting.ClientPlugin.prototype.setCapabilitiesHandler = |
237 function(handler) {}; | 237 function(handler) {}; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 /** | 318 /** |
319 * Preload the plugin to make instantiation faster when the user tries | 319 * Preload the plugin to make instantiation faster when the user tries |
320 * to connect. | 320 * to connect. |
321 */ | 321 */ |
322 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 322 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
323 | 323 |
324 /** | 324 /** |
325 * @type {remoting.ClientPluginFactory} | 325 * @type {remoting.ClientPluginFactory} |
326 */ | 326 */ |
327 remoting.ClientPlugin.factory = null; | 327 remoting.ClientPlugin.factory = null; |
OLD | NEW |