Chromium Code Reviews| Index: remoting/webapp/crd/js/client_plugin.js |
| diff --git a/remoting/webapp/crd/js/client_plugin.js b/remoting/webapp/crd/js/client_plugin.js |
| index 12f5a6dfc2121324f9adf2e3c14e3c58692bed10..bed430acf4c31eda23067e786c31e6d317e05ee6 100644 |
| --- a/remoting/webapp/crd/js/client_plugin.js |
| +++ b/remoting/webapp/crd/js/client_plugin.js |
| @@ -39,6 +39,11 @@ remoting.ClientPlugin.prototype.getDesktopXDpi = function() {}; |
| remoting.ClientPlugin.prototype.getDesktopYDpi = function() {}; |
| /** |
| + * @return {remoting.ClientPlugin.HostDesktop} |
| + */ |
| +remoting.ClientPlugin.prototype.hostDesktop = function() {}; |
| + |
| +/** |
| * @return {HTMLElement} The DOM element representing the remote session. |
| */ |
| remoting.ClientPlugin.prototype.element = function() {}; |
| @@ -325,3 +330,36 @@ remoting.ClientPluginFactory.prototype.preloadPlugin = function() {}; |
| * @type {remoting.ClientPluginFactory} |
| */ |
| remoting.ClientPlugin.factory = null; |
| + |
| + |
| +/** |
| + * @interface |
| + * @extends {base.EventSource} |
| + */ |
| +remoting.ClientPlugin.HostDesktop = function() {}; |
|
garykac
2015/02/12 18:18:22
Why not just remoting.HostDesktop?
kelvinp
2015/02/12 23:26:41
Done.
|
| + |
| +/** @return {boolean} */ |
| +remoting.ClientPlugin.HostDesktop.prototype.hasResizeRateLimit = function() {}; |
| + |
| +/** @return {boolean} */ |
| +remoting.ClientPlugin.HostDesktop.prototype.isResizable = function() {}; |
| + |
| +/** @enum {string} */ |
| +remoting.ClientPlugin.HostDesktop.Events = { |
| + sizeChanged: 'sizeChanged', |
| + shapeChanged: 'shapeChanged' |
|
garykac
2015/02/12 18:18:22
2 spaces
kelvinp
2015/02/12 23:26:41
Done.
|
| +}; |
| + |
| +/** @return {{width:number, height:number, xDpi:number, yDpi:number}} */ |
| +remoting.ClientPlugin.HostDesktop.prototype.getDimensions = function() {}; |
| + |
| +/** |
| + * Resize the desktop of the host to |width|, |height| and |dpi|. |
| + * |
| + * @param {number} width |
| + * @param {number} height |
| + * @param {number} dpi |
| + */ |
| +remoting.ClientPlugin.HostDesktop.prototype.resize = function(width, |
| + height, |
| + dpi) {}; |