| 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 ClientPlugin functionality. | 7 * Interface abstracting the ClientPlugin functionality. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 remoting.ClientPlugin.ConnectionEventHandler.prototype.onConnectionReady = | 225 remoting.ClientPlugin.ConnectionEventHandler.prototype.onConnectionReady = |
| 226 function(ready) {}; | 226 function(ready) {}; |
| 227 | 227 |
| 228 /** | 228 /** |
| 229 * @param {!Array<string>} capabilities The set of capabilities negotiated | 229 * @param {!Array<string>} capabilities The set of capabilities negotiated |
| 230 * between the client and host. | 230 * between the client and host. |
| 231 */ | 231 */ |
| 232 remoting.ClientPlugin.ConnectionEventHandler.prototype.onSetCapabilities = | 232 remoting.ClientPlugin.ConnectionEventHandler.prototype.onSetCapabilities = |
| 233 function(capabilities) {}; | 233 function(capabilities) {}; |
| 234 | 234 |
| 235 /** Called when the first video frame is received */ |
| 236 remoting.ClientPlugin.ConnectionEventHandler.prototype.onFirstFrameReceived = |
| 237 function() {}; |
| 238 |
| 235 /** | 239 /** |
| 236 * @interface | 240 * @interface |
| 237 */ | 241 */ |
| 238 remoting.ClientPluginFactory = function() {}; | 242 remoting.ClientPluginFactory = function() {}; |
| 239 | 243 |
| 240 /** | 244 /** |
| 241 * @param {Element} container The container for the embed element. | 245 * @param {Element} container The container for the embed element. |
| 242 * @param {Array<string>} requiredCapabilities | 246 * @param {Array<string>} requiredCapabilities |
| 243 * @return {remoting.ClientPlugin} A new client plugin instance. | 247 * @return {remoting.ClientPlugin} A new client plugin instance. |
| 244 */ | 248 */ |
| 245 remoting.ClientPluginFactory.prototype.createPlugin = | 249 remoting.ClientPluginFactory.prototype.createPlugin = |
| 246 function(container, requiredCapabilities) {}; | 250 function(container, requiredCapabilities) {}; |
| 247 | 251 |
| 248 /** | 252 /** |
| 249 * Preload the plugin to make instantiation faster when the user tries | 253 * Preload the plugin to make instantiation faster when the user tries |
| 250 * to connect. | 254 * to connect. |
| 251 */ | 255 */ |
| 252 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; | 256 remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
| 253 | 257 |
| 254 /** | 258 /** |
| 255 * @type {remoting.ClientPluginFactory} | 259 * @type {remoting.ClientPluginFactory} |
| 256 */ | 260 */ |
| 257 remoting.ClientPlugin.factory = null; | 261 remoting.ClientPlugin.factory = null; |
| OLD | NEW |