diff options
Diffstat (limited to 'remoting/webapp')
-rw-r--r-- | remoting/webapp/base/js/client_plugin_host_desktop_impl.js | 29 | ||||
-rw-r--r-- | remoting/webapp/base/js/client_plugin_impl.js | 2 | ||||
-rw-r--r-- | remoting/webapp/base/js/host_desktop.js | 4 |
3 files changed, 0 insertions, 35 deletions
diff --git a/remoting/webapp/base/js/client_plugin_host_desktop_impl.js b/remoting/webapp/base/js/client_plugin_host_desktop_impl.js index 23213ec..1a8d06f 100644 --- a/remoting/webapp/base/js/client_plugin_host_desktop_impl.js +++ b/remoting/webapp/base/js/client_plugin_host_desktop_impl.js @@ -86,33 +86,4 @@ remoting.ClientPlugin.HostDesktopImpl.prototype.onSizeUpdated = function( this.getDimensions()); }; -/** - * This function is called by |this.plugin_| when the shape of the host - * desktop is changed. - * - * @param {remoting.ClientPluginMessage} message - * @return {Array<{left:number, top:number, width:number, height:number}>} - * rectangles of the desktop shape. - */ -remoting.ClientPlugin.HostDesktopImpl.prototype.onShapeUpdated = - function(message) { - var shapes = base.getArrayAttr(message.data, 'rects'); - var rects = shapes.map( - /** @param {Array<number>} shape */ - function(shape) { - if (!Array.isArray(shape) || shape.length != 4) { - throw 'Received invalid onDesktopShape message'; - } - var rect = {}; - rect.left = shape[0]; - rect.top = shape[1]; - rect.width = shape[2]; - rect.height = shape[3]; - return rect; - }); - - this.raiseEvent(remoting.HostDesktop.Events.shapeChanged, rects); - return rects; -}; - }()); diff --git a/remoting/webapp/base/js/client_plugin_impl.js b/remoting/webapp/base/js/client_plugin_impl.js index 626c5d9..da327d8 100644 --- a/remoting/webapp/base/js/client_plugin_impl.js +++ b/remoting/webapp/base/js/client_plugin_impl.js @@ -264,8 +264,6 @@ remoting.ClientPluginImpl.prototype.handleMessageMethod_ = function(message) { this.onInitializedDeferred_.resolve(); } else if (message.method == 'onDesktopSize') { this.hostDesktop_.onSizeUpdated(message); - } else if (message.method == 'onDesktopShape') { - this.hostDesktop_.onShapeUpdated(message); } else if (message.method == 'onPerfStats') { // Return value is ignored. These calls will throw an error if the value // is not a number. diff --git a/remoting/webapp/base/js/host_desktop.js b/remoting/webapp/base/js/host_desktop.js index 83a4d76..942c085 100644 --- a/remoting/webapp/base/js/host_desktop.js +++ b/remoting/webapp/base/js/host_desktop.js @@ -24,10 +24,6 @@ remoting.HostDesktop.Events = { // Fired when the size of the host desktop changes with the desktop dimensions // {{width:number, height:number, xDpi:number, yDpi:number}} sizeChanged: 'sizeChanged', - // Fired when the shape of the host desktop changes with an array of - // rectangles of desktop shapes as the event data. - // Array<{left:number, top:number, width:number, height:number}> - shapeChanged: 'shapeChanged' }; /** |