| 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 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Class that wraps low-level details of interacting with the client plugin. | 7 * Class that wraps low-level details of interacting with the client plugin. |
| 8 * | 8 * |
| 9 * This abstracts a <embed> element and controls the plugin which does | 9 * This abstracts a <embed> element and controls the plugin which does |
| 10 * the actual remoting work. It also handles differences between | 10 * the actual remoting work. It also handles differences between |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 this.useAsyncPinDialog_(); | 471 this.useAsyncPinDialog_(); |
| 472 this.plugin_.postMessage(JSON.stringify( | 472 this.plugin_.postMessage(JSON.stringify( |
| 473 { method: 'connect', data: { | 473 { method: 'connect', data: { |
| 474 hostJid: host.jabberId, | 474 hostJid: host.jabberId, |
| 475 hostPublicKey: host.publicKey, | 475 hostPublicKey: host.publicKey, |
| 476 localJid: localJid, | 476 localJid: localJid, |
| 477 sharedSecret: '', | 477 sharedSecret: '', |
| 478 authenticationMethods: methods, | 478 authenticationMethods: methods, |
| 479 authenticationTag: host.hostId, | 479 authenticationTag: host.hostId, |
| 480 capabilities: this.capabilities_.join(" "), | 480 capabilities: this.capabilities_.join(" "), |
| 481 clientPairingId: credentialsProvider.getPairingInfo().id, | 481 clientPairingId: credentialsProvider.getPairingInfo().clientId, |
| 482 clientPairedSecret: credentialsProvider.getPairingInfo().secret, | 482 clientPairedSecret: credentialsProvider.getPairingInfo().sharedSecret, |
| 483 keyFilter: keyFilter, | 483 keyFilter: keyFilter, |
| 484 enableVideoDecodeRenderer: enableVideoDecodeRenderer | 484 enableVideoDecodeRenderer: enableVideoDecodeRenderer |
| 485 } | 485 } |
| 486 })); | 486 })); |
| 487 }; | 487 }; |
| 488 | 488 |
| 489 /** | 489 /** |
| 490 * Release all currently pressed keys. | 490 * Release all currently pressed keys. |
| 491 */ | 491 */ |
| 492 remoting.ClientPluginImpl.prototype.releaseAllKeys = function() { | 492 remoting.ClientPluginImpl.prototype.releaseAllKeys = function() { |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 remoting.DefaultClientPluginFactory.prototype.preloadPlugin = function() { | 784 remoting.DefaultClientPluginFactory.prototype.preloadPlugin = function() { |
| 785 if (remoting.settings.CLIENT_PLUGIN_TYPE != 'pnacl') { | 785 if (remoting.settings.CLIENT_PLUGIN_TYPE != 'pnacl') { |
| 786 return; | 786 return; |
| 787 } | 787 } |
| 788 | 788 |
| 789 var plugin = remoting.ClientPluginImpl.createPluginElement_(); | 789 var plugin = remoting.ClientPluginImpl.createPluginElement_(); |
| 790 plugin.addEventListener( | 790 plugin.addEventListener( |
| 791 'loadend', function() { document.body.removeChild(plugin); }, false); | 791 'loadend', function() { document.body.removeChild(plugin); }, false); |
| 792 document.body.appendChild(plugin); | 792 document.body.appendChild(plugin); |
| 793 }; | 793 }; |
| OLD | NEW |