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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 */ | 58 */ |
59 remoting.ClientPlugin.Feature = { | 59 remoting.ClientPlugin.Feature = { |
60 INJECT_KEY_EVENT: 'injectKeyEvent', | 60 INJECT_KEY_EVENT: 'injectKeyEvent', |
61 NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions', | 61 NOTIFY_CLIENT_DIMENSIONS: 'notifyClientDimensions', |
62 NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution', | 62 NOTIFY_CLIENT_RESOLUTION: 'notifyClientResolution', |
63 ASYNC_PIN: 'asyncPin', | 63 ASYNC_PIN: 'asyncPin', |
64 PAUSE_VIDEO: 'pauseVideo', | 64 PAUSE_VIDEO: 'pauseVideo', |
65 PAUSE_AUDIO: 'pauseAudio', | 65 PAUSE_AUDIO: 'pauseAudio', |
66 REMAP_KEY: 'remapKey', | 66 REMAP_KEY: 'remapKey', |
67 SEND_CLIPBOARD_ITEM: 'sendClipboardItem', | 67 SEND_CLIPBOARD_ITEM: 'sendClipboardItem', |
| 68 THIRD_PARTY_AUTH: 'thirdPartyAuth', |
68 TRAP_KEY: 'trapKey' | 69 TRAP_KEY: 'trapKey' |
69 }; | 70 }; |
70 | 71 |
71 /** | 72 /** |
72 * @param {remoting.ClientPlugin.Feature} feature The feature to test for. | 73 * @param {remoting.ClientPlugin.Feature} feature The feature to test for. |
73 * @return {boolean} True if the plugin supports the named feature. | 74 * @return {boolean} True if the plugin supports the named feature. |
74 */ | 75 */ |
75 remoting.ClientPlugin.prototype.hasFeature = function(feature) {}; | 76 remoting.ClientPlugin.prototype.hasFeature = function(feature) {}; |
76 | 77 |
77 /** | 78 /** |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 * Gives the client authenticator the PIN. | 183 * Gives the client authenticator the PIN. |
183 * | 184 * |
184 * @param {string} pin The PIN. | 185 * @param {string} pin The PIN. |
185 */ | 186 */ |
186 remoting.ClientPlugin.prototype.onPinFetched = function(pin) {}; | 187 remoting.ClientPlugin.prototype.onPinFetched = function(pin) {}; |
187 | 188 |
188 /** | 189 /** |
189 * Tells the plugin to ask for the PIN asynchronously. | 190 * Tells the plugin to ask for the PIN asynchronously. |
190 */ | 191 */ |
191 remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {}; | 192 remoting.ClientPlugin.prototype.useAsyncPinDialog = function() {}; |
| 193 |
| 194 /** |
| 195 * Sets the third party authentication token and shared secret. |
| 196 * |
| 197 * @param {string} token The token received from the token URL. |
| 198 * @param {string} sharedSecret Shared secret received from the token URL. |
| 199 */ |
| 200 remoting.ClientPlugin.prototype.onThirdPartyTokenFetched = |
| 201 function(token, sharedSecret) {}; |
OLD | NEW |