| Index: remoting/webapp/client_plugin_async.js
|
| diff --git a/remoting/webapp/client_plugin_async.js b/remoting/webapp/client_plugin_async.js
|
| index e57902eb7a933e63d9ad831921151b9d8e6737c5..a7d7f32cd4a5d7a545591486938d40e8b18a4202 100644
|
| --- a/remoting/webapp/client_plugin_async.js
|
| +++ b/remoting/webapp/client_plugin_async.js
|
| @@ -36,6 +36,8 @@ remoting.ClientPluginAsync = function(plugin) {
|
| * @param {number} error The error code, if any.
|
| */
|
| this.onConnectionStatusUpdateHandler = function(state, error) {};
|
| + /** @param {boolean} ready Connection ready state. */
|
| + this.onConnectionReadyHandler = function(ready) {};
|
| this.onDesktopSizeUpdateHandler = function () {};
|
|
|
| /** @type {number} */
|
| @@ -190,6 +192,12 @@ remoting.ClientPluginAsync.prototype.handleMessage_ = function(messageStr) {
|
| if (remoting.clientSession) {
|
| remoting.clientSession.onFirstFrameReceived();
|
| }
|
| + } else if (message.method == 'onConnectionReady') {
|
| + if (typeof message.data['ready'] != 'boolean') {
|
| + console.error('Received incorrect onConnectionReady message.');
|
| + return;
|
| + }
|
| + this.onConnectionReadyHandler(message.data['ready']);
|
| }
|
| }
|
|
|
|
|