Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Unified Diff: remoting/webapp/base/js/client_plugin_host_desktop_impl.js

Issue 1827043004: Remove shaped desktop support from remoting host and client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/test/test_video_renderer.cc ('k') | remoting/webapp/base/js/client_plugin_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/base/js/client_plugin_host_desktop_impl.js
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 23213ec6b9c3b9b3e25aba110afde86e19873b82..1a8d06f187e23f1febdff3e1ad9b3b3033faf9d2 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;
-};
-
}());
« no previous file with comments | « remoting/test/test_video_renderer.cc ('k') | remoting/webapp/base/js/client_plugin_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698