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 /** @suppress {duplicate} */ | 5 /** @suppress {duplicate} */ |
6 var remoting = remoting || {}; | 6 var remoting = remoting || {}; |
7 | 7 |
8 /** | 8 /** |
9 * Interface used for ClientPlugin objects. | 9 * Interface used for ClientPlugin objects. |
10 * @interface | 10 * @interface |
(...skipping 15 matching lines...) Expand all Loading... |
26 /** @type {function(string): void} Debug messages callback. */ | 26 /** @type {function(string): void} Debug messages callback. */ |
27 remoting.ClientPlugin.prototype.onDebugMessageHandler; | 27 remoting.ClientPlugin.prototype.onDebugMessageHandler; |
28 /** @type {function(number, number): void} State change callback. */ | 28 /** @type {function(number, number): void} State change callback. */ |
29 remoting.ClientPlugin.prototype.onConnectionStatusUpdateHandler; | 29 remoting.ClientPlugin.prototype.onConnectionStatusUpdateHandler; |
30 /** @type {function(boolean): void} Connection ready state callback. */ | 30 /** @type {function(boolean): void} Connection ready state callback. */ |
31 remoting.ClientPlugin.prototype.onConnectionReadyHandler; | 31 remoting.ClientPlugin.prototype.onConnectionReadyHandler; |
32 /** @type {function(): void} Desktop size change callback. */ | 32 /** @type {function(): void} Desktop size change callback. */ |
33 remoting.ClientPlugin.prototype.onDesktopSizeUpdateHandler; | 33 remoting.ClientPlugin.prototype.onDesktopSizeUpdateHandler; |
34 /** @type {function(!Array.<string>): void} Capabilities negotiated callback. */ | 34 /** @type {function(!Array.<string>): void} Capabilities negotiated callback. */ |
35 remoting.ClientPlugin.prototype.onSetCapabilitiesHandler; | 35 remoting.ClientPlugin.prototype.onSetCapabilitiesHandler; |
36 /** @type {function(): void} Request a PIN from the user. */ | 36 /** @type {function(boolean): void} Request a PIN from the user. */ |
37 remoting.ClientPlugin.prototype.fetchPinHandler; | 37 remoting.ClientPlugin.prototype.fetchPinHandler; |
38 | 38 |
39 /** | 39 /** |
40 * Initializes the plugin asynchronously and calls specified function | 40 * Initializes the plugin asynchronously and calls specified function |
41 * when done. | 41 * when done. |
42 * | 42 * |
43 * @param {function(boolean): void} onDone Function to be called when | 43 * @param {function(boolean): void} onDone Function to be called when |
44 * the plugin is initialized. Parameter is set to true when the plugin | 44 * the plugin is initialized. Parameter is set to true when the plugin |
45 * is loaded successfully. | 45 * is loaded successfully. |
46 */ | 46 */ |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {}; | 192 remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {}; |
193 | 193 |
194 /** | 194 /** |
195 * Sets the third party authentication token and shared secret. | 195 * Sets the third party authentication token and shared secret. |
196 * | 196 * |
197 * @param {string} token The token received from the token URL. | 197 * @param {string} token The token received from the token URL. |
198 * @param {string} sharedSecret Shared secret received from the token URL. | 198 * @param {string} sharedSecret Shared secret received from the token URL. |
199 */ | 199 */ |
200 remoting.ClientPlugin.prototype.onThirdPartyTokenFetched = | 200 remoting.ClientPlugin.prototype.onThirdPartyTokenFetched = |
201 function(token, sharedSecret) {}; | 201 function(token, sharedSecret) {}; |
OLD | NEW |