Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Side by Side Diff: remoting/webapp/crd/js/client_plugin_impl.js

Issue 1008003002: [Webapp Refactor] Implements Me2MeConnectFlow as an object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | remoting/webapp/crd/js/crd_connect.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | remoting/webapp/crd/js/crd_connect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698