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

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

Issue 929323003: Separate host desktop related functionality into remoting.HostDesktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Jamie's feedback Created 5 years, 10 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
Index: remoting/webapp/base/js/window_shape.js
diff --git a/remoting/webapp/base/js/window_shape.js b/remoting/webapp/base/js/window_shape.js
index dc3ddd109a28433665e381e9406261efc7aa30c0..d4742c5654de635a74362a679d76a8566bd193e9 100644
--- a/remoting/webapp/base/js/window_shape.js
+++ b/remoting/webapp/base/js/window_shape.js
@@ -69,17 +69,6 @@ remoting.WindowShape.prototype.updateClientWindowShape = function() {
for (var i = 0; i < this.clientUICallbacks_.length; ++i) {
this.clientUICallbacks_[i].addToRegion(rects);
}
- for (var i = 0; i < rects.length; ++i) {
- var rect = /** @type {ClientRect} */ (rects[i]);
- var left = Math.floor(rect.left);
- var right = Math.ceil(rect.left + rect.width);
- var top = Math.floor(rect.top);
- var bottom = Math.ceil(rect.top + rect.height);
- rects[i] = { left: left,
- top: top,
- width: right - left,
- height: bottom - top };
- }
Jamie 2015/02/19 22:44:04 Apologies for the churn, but now I see the code re
kelvinp 2015/02/19 23:36:20 Done.
chrome.app.window.current().setShape({rects: rects});
};

Powered by Google App Engine
This is Rietveld 408576698