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

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

Issue 1022473004: [Webapp Refactor] Move key injection logic into the plugin layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removes mismatched privates 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 | « remoting/webapp/crd/js/session_connector.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 * Connect set-up state machine for Me2Me and IT2Me 7 * Connect set-up state machine for Me2Me and IT2Me
8 */ 8 */
9 9
10 'use strict'; 10 'use strict';
(...skipping 10 matching lines...) Expand all
21 21
22 /** 22 /**
23 * @param {HTMLElement} clientContainer Container element for the client view. 23 * @param {HTMLElement} clientContainer Container element for the client view.
24 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on 24 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on
25 * success. 25 * success.
26 * @param {function(!remoting.Error):void} onError Callback on error. 26 * @param {function(!remoting.Error):void} onError Callback on error.
27 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when 27 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when
28 * the connection fails. 28 * the connection fails.
29 * @param {Array<string>} requiredCapabilities Connector capabilities 29 * @param {Array<string>} requiredCapabilities Connector capabilities
30 * required by this application. 30 * required by this application.
31 * @param {string} defaultRemapKeys The default set of key mappings for the
32 * client session to use.
33 * @constructor 31 * @constructor
34 * @implements {remoting.SessionConnector} 32 * @implements {remoting.SessionConnector}
35 */ 33 */
36 remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError, 34 remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError,
37 onConnectionFailed, 35 onConnectionFailed,
38 requiredCapabilities, 36 requiredCapabilities) {
39 defaultRemapKeys) {
40 /** @private {HTMLElement} */ 37 /** @private {HTMLElement} */
41 this.clientContainer_ = clientContainer; 38 this.clientContainer_ = clientContainer;
42 39
43 /** @private {function(remoting.ConnectionInfo):void} */ 40 /** @private {function(remoting.ConnectionInfo):void} */
44 this.onConnected_ = onConnected; 41 this.onConnected_ = onConnected;
45 42
46 /** @private {function(!remoting.Error):void} */ 43 /** @private {function(!remoting.Error):void} */
47 this.onError_ = onError; 44 this.onError_ = onError;
48 45
49 /** @private {function(!remoting.Error):void} */ 46 /** @private {function(!remoting.Error):void} */
50 this.onConnectionFailed_ = onConnectionFailed; 47 this.onConnectionFailed_ = onConnectionFailed;
51 48
52 /** @private {Array<string>} */ 49 /** @private {Array<string>} */
53 this.requiredCapabilities_ = requiredCapabilities; 50 this.requiredCapabilities_ = requiredCapabilities;
54 51
55 /** @private {string} */
56 this.defaultRemapKeys_ = defaultRemapKeys;
57
58 /** @private {remoting.DesktopConnectedView.Mode} */ 52 /** @private {remoting.DesktopConnectedView.Mode} */
59 this.connectionMode_ = remoting.DesktopConnectedView.Mode.ME2ME; 53 this.connectionMode_ = remoting.DesktopConnectedView.Mode.ME2ME;
60 54
61 /** @private {remoting.SignalStrategy} */ 55 /** @private {remoting.SignalStrategy} */
62 this.signalStrategy_ = null; 56 this.signalStrategy_ = null;
63 57
64 /** @private {remoting.SmartReconnector} */ 58 /** @private {remoting.SmartReconnector} */
65 this.reconnector_ = null; 59 this.reconnector_ = null;
66 60
67 /** @private */ 61 /** @private */
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 542
549 /** 543 /**
550 * @param {HTMLElement} clientContainer Container element for the client view. 544 * @param {HTMLElement} clientContainer Container element for the client view.
551 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on 545 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on
552 * success. 546 * success.
553 * @param {function(!remoting.Error):void} onError Callback on error. 547 * @param {function(!remoting.Error):void} onError Callback on error.
554 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when 548 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when
555 * the connection fails. 549 * the connection fails.
556 * @param {Array<string>} requiredCapabilities Connector capabilities 550 * @param {Array<string>} requiredCapabilities Connector capabilities
557 * required by this application. 551 * required by this application.
558 * @param {string} defaultRemapKeys The default set of key mappings to use
559 * in the client session.
560 * @return {remoting.SessionConnector} 552 * @return {remoting.SessionConnector}
561 */ 553 */
562 remoting.DefaultSessionConnectorFactory.prototype.createConnector = 554 remoting.DefaultSessionConnectorFactory.prototype.createConnector =
563 function(clientContainer, onConnected, onError, 555 function(clientContainer, onConnected, onError,
564 onConnectionFailed, requiredCapabilities, defaultRemapKeys) { 556 onConnectionFailed, requiredCapabilities) {
565 return new remoting.SessionConnectorImpl(clientContainer, onConnected, 557 return new remoting.SessionConnectorImpl(clientContainer, onConnected,
566 onError, 558 onError,
567 onConnectionFailed, 559 onConnectionFailed,
568 requiredCapabilities, 560 requiredCapabilities);
569 defaultRemapKeys);
570 }; 561 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/session_connector.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698