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