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

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

Issue 779613003: [Chromoting] Create core Application interface for CRD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years 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';
11 11
12 /** @suppress {duplicate} */ 12 /** @suppress {duplicate} */
13 var remoting = remoting || {}; 13 var remoting = remoting || {};
14 14
15 /** 15 /**
16 * @param {HTMLElement} clientContainer Container element for the client view. 16 * @param {HTMLElement} clientContainer Container element for the client view.
17 * @param {function(remoting.ClientSession):void} onConnected Callback on 17 * @param {function(remoting.ClientSession):void} onConnected Callback on
18 * success. 18 * success.
19 * @param {function(remoting.Error):void} onError Callback on error. 19 * @param {function(remoting.Error):void} onError Callback on error.
20 * @param {function(string, string):boolean} onExtensionMessage The handler for 20 * @param {function(string, string):boolean} onExtensionMessage The handler for
21 * protocol extension messages. Returns true if a message is recognized; 21 * protocol extension messages. Returns true if a message is recognized;
22 * false otherwise. 22 * false otherwise.
23 * @constructor 23 * @constructor
24 * @implements {remoting.SessionConnector} 24 * @implements {remoting.SessionConnector}
25 */ 25 */
26 remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError, 26 remoting.SessionConnectorImpl = function(clientContainer, onConnected, onError,
27 onExtensionMessage) { 27 onExtensionMessage) {
28 /** 28 /**
29 * @type {HTMLElement} 29 * @type {HTMLElement}
30 * @private 30 * @private
31 */ 31 */
32 this.clientContainer_ = clientContainer; 32 this.clientContainer_ = clientContainer;
33 33
34 /** 34 /**
35 * @type {function(remoting.ClientSession):void} 35 * @type {function(remoting.ClientSession):void}
36 * @private 36 * @private
37 */ 37 */
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 * @param {HTMLElement} clientContainer Container element for the client view. 592 * @param {HTMLElement} clientContainer Container element for the client view.
593 * @param {function(remoting.ClientSession):void} onConnected Callback on 593 * @param {function(remoting.ClientSession):void} onConnected Callback on
594 * success. 594 * success.
595 * @param {function(remoting.Error):void} onError Callback on error. 595 * @param {function(remoting.Error):void} onError Callback on error.
596 * @param {function(string, string):boolean} onExtensionMessage The handler for 596 * @param {function(string, string):boolean} onExtensionMessage The handler for
597 * protocol extension messages. Returns true if a message is recognized; 597 * protocol extension messages. Returns true if a message is recognized;
598 * false otherwise. 598 * false otherwise.
599 */ 599 */
600 remoting.DefaultSessionConnectorFactory.prototype.createConnector = 600 remoting.DefaultSessionConnectorFactory.prototype.createConnector =
601 function(clientContainer, onConnected, onError, onExtensionMessage) { 601 function(clientContainer, onConnected, onError, onExtensionMessage) {
602 return new remoting.SessionConnectorImpl( 602 return new remoting.SessionConnectorImpl(clientContainer, onConnected,
603 clientContainer, onConnected, onError, onExtensionMessage); 603 onError, onExtensionMessage);
604 }; 604 };
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