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

Unified Diff: Source/web/resources/pickerCommon.js

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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: Source/web/resources/pickerCommon.js
diff --git a/Source/web/resources/pickerCommon.js b/Source/web/resources/pickerCommon.js
index eb7c61f803314d824fac395b809c502e5c847186..dc187a5acd2c48ae1e84ff5f3330b26b46ff7f59 100644
--- a/Source/web/resources/pickerCommon.js
+++ b/Source/web/resources/pickerCommon.js
@@ -115,11 +115,14 @@ function adjustWindowRect(width, height, minWidth, minHeight) {
return windowRect;
var anchorRect = new Rectangle(global.params.anchorRectInScreen);
+ console.log("anchorRect.x:" + anchorRect.x + " anchorRect.y:" + anchorRect.y + " anchorRect.width:" + anchorRect.width + " anchorRect.height:" + anchorRect.height);
tkent 2014/09/01 05:37:03 Remove console.log()s.
keishi 2014/09/04 13:16:20 Done.
var availRect = new Rectangle(window.screen.availLeft, window.screen.availTop, window.screen.availWidth, window.screen.availHeight);
_adjustWindowRectVertically(windowRect, availRect, anchorRect, minHeight);
_adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWidth);
-
+console.log("width:" + width + " height:" + height);
+console.log("minWidth:" + minWidth + " minHeight:" + minHeight);
+console.log("availRect.x:" + availRect.x + " availRect.y:" + availRect.y);
return windowRect;
}
@@ -157,6 +160,7 @@ function _adjustWindowRectHorizontally(windowRect, availRect, anchorRect, minWid
* @param {!Rectangle} rect
*/
function setWindowRect(rect) {
+ console.log("rect.x:" + rect.x + " rect.y:" + rect.y);
if (window.frameElement) {
window.frameElement.style.width = rect.width + "px";
window.frameElement.style.height = rect.height + "px";

Powered by Google App Engine
This is Rietveld 408576698