| Index: remoting/webapp/client_plugin_async.js
|
| diff --git a/remoting/webapp/client_plugin_async.js b/remoting/webapp/client_plugin_async.js
|
| index 211502c071e7657cb137e4caeded3c12621993a4..cb14fa498c024605a348cfa06b4e815b37ebb054 100644
|
| --- a/remoting/webapp/client_plugin_async.js
|
| +++ b/remoting/webapp/client_plugin_async.js
|
| @@ -365,6 +365,21 @@ remoting.ClientPluginAsync.prototype.sendClipboardItem =
|
| };
|
|
|
| /**
|
| + * Notifies the host that the client has the specified dimensions.
|
| + *
|
| + * @param {number} width The available client width.
|
| + * @param {number} height The available client height.
|
| + */
|
| +remoting.ClientPluginAsync.prototype.notifyClientDimensions =
|
| + function(width, height) {
|
| + if (!this.hasFeature(remoting.ClientPlugin.Feature.NOTIFY_CLIENT_DIMENSIONS))
|
| + return;
|
| + this.plugin.postMessage(JSON.stringify(
|
| + { method: 'notifyClientDimensions',
|
| + data: { width: width, height: height }}));
|
| +};
|
| +
|
| +/**
|
| * If we haven't yet received a "hello" message from the plugin, change its
|
| * size so that the user can confirm it if click-to-play is enabled, or can
|
| * see the "this plugin is disabled" message if it is actually disabled.
|
|
|