OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 * Interface abstracting the SessionConnector functionality. | 7 * Interface abstracting the SessionConnector functionality. |
8 */ | 8 */ |
9 | 9 |
10 'use strict'; | 10 'use strict'; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 /** | 114 /** |
115 * @interface | 115 * @interface |
116 */ | 116 */ |
117 remoting.SessionConnectorFactory = function() {}; | 117 remoting.SessionConnectorFactory = function() {}; |
118 | 118 |
119 /** | 119 /** |
120 * @param {HTMLElement} clientContainer Container element for the client view. | 120 * @param {HTMLElement} clientContainer Container element for the client view. |
121 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on | 121 * @param {function(remoting.ConnectionInfo):void} onConnected Callback on |
122 * success. | 122 * success. |
123 * @param {function(!remoting.Error):void} onError Callback on error. | 123 * @param {function(!remoting.Error):void} onError Callback on error. |
124 * @param {function(string, string):boolean} appProtocolExtensionHandler The | |
125 * handler for the application's protocol extension messages. Returns true | |
126 * if a message is recognized; false otherwise. | |
127 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when | 124 * @param {function(!remoting.Error):void} onConnectionFailed Callback for when |
128 * the connection fails. | 125 * the connection fails. |
129 * @param {Array<string>} requiredCapabilities Connector capabilities | 126 * @param {Array<string>} requiredCapabilities Connector capabilities |
130 * required by this application. | 127 * required by this application. |
131 * @param {string} defaultRemapKeys The default set of key mappings to use | 128 * @param {string} defaultRemapKeys The default set of key mappings to use |
132 * in the client session. | 129 * in the client session. |
133 * @return {remoting.SessionConnector} | 130 * @return {remoting.SessionConnector} |
134 */ | 131 */ |
135 remoting.SessionConnectorFactory.prototype.createConnector = | 132 remoting.SessionConnectorFactory.prototype.createConnector = |
136 function(clientContainer, onConnected, onError, appProtocolExtensionHandler, | 133 function(clientContainer, onConnected, onError, |
137 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; | 134 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; |
138 | 135 |
139 /** | 136 /** |
140 * @type {remoting.SessionConnectorFactory} | 137 * @type {remoting.SessionConnectorFactory} |
141 */ | 138 */ |
142 remoting.SessionConnector.factory = null; | 139 remoting.SessionConnector.factory = null; |
OLD | NEW |