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

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

Issue 803653004: Update Chromoting to use /third_party/closure_compiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused types Created 5 years, 11 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
OLDNEW
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 remoting.SessionConnectorFactory = function() {}; 115 remoting.SessionConnectorFactory = function() {};
116 116
117 /** 117 /**
118 * @param {HTMLElement} clientContainer Container element for the client view. 118 * @param {HTMLElement} clientContainer Container element for the client view.
119 * @param {function(remoting.ClientSession):void} onConnected Callback on 119 * @param {function(remoting.ClientSession):void} onConnected Callback on
120 * success. 120 * success.
121 * @param {function(remoting.Error):void} onError Callback on error. 121 * @param {function(remoting.Error):void} onError Callback on error.
122 * @param {function(string, string):boolean} onExtensionMessage The handler for 122 * @param {function(string, string):boolean} onExtensionMessage The handler for
123 * protocol extension messages. Returns true if a message is recognized; 123 * protocol extension messages. Returns true if a message is recognized;
124 * false otherwise. 124 * false otherwise.
125 * @param {function(string):void} onConnectionFailed Callback for when the 125 * @param {function(remoting.Error):void} onConnectionFailed Callback for when
126 * connection fails. 126 * the connection fails.
127 * @param {Array.<string>} requiredCapabilities Connector capabilities 127 * @param {Array.<string>} requiredCapabilities Connector capabilities
128 * required by this application. 128 * required by this application.
129 * @param {string} defaultRemapKeys The default set of key mappings to use 129 * @param {string} defaultRemapKeys The default set of key mappings to use
130 * in the client session. 130 * in the client session.
131 * @return {remoting.SessionConnector} 131 * @return {remoting.SessionConnector}
132 */ 132 */
133 remoting.SessionConnectorFactory.prototype.createConnector = 133 remoting.SessionConnectorFactory.prototype.createConnector =
134 // TODO(garykac): Can onExtensionMessage be removed from here? It's only 134 // TODO(garykac): Can onExtensionMessage be removed from here? It's only
135 // needed to pass to the ClientSession. Investigate why ClientSession 135 // needed to pass to the ClientSession. Investigate why ClientSession
136 // needs this. 136 // needs this.
137 function(clientContainer, onConnected, onError, onExtensionMessage, 137 function(clientContainer, onConnected, onError, onExtensionMessage,
138 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {}; 138 onConnectionFailed, requiredCapabilities, defaultRemapKeys) {};
139 139
140 /** 140 /**
141 * @type {remoting.SessionConnectorFactory} 141 * @type {remoting.SessionConnectorFactory}
142 */ 142 */
143 remoting.SessionConnector.factory = null; 143 remoting.SessionConnector.factory = null;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698