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

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js

Issue 2732923002: Add fromSurface optional parameter to devtools Page.CaptureScreenshot (Closed)
Patch Set: Remove switches include Created 3 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
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
index 34e83066b32f0ef18181e25324bbedf32384a6fb..200f54aad3390e4c6242caf954c9a58d73ba48b5 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceModeModel.js
@@ -652,7 +652,7 @@ Emulation.DeviceModeModel = class {
}));
promises.push(this._target.emulationAgent().setVisibleSize(
Math.floor(scaledPageSize.width), Math.floor(scaledPageSize.height)));
- Promise.all(promises).then(() => screenCaptureModel.captureScreenshot('png', 100)).then(content => {
+ Promise.all(promises).then(() => screenCaptureModel.captureScreenshot('png', 100, false)).then(content => {
this._target.emulationAgent().setVisibleSize(this._emulatedPageSize.width, this._emulatedPageSize.height);
this._target.emulationAgent().resetViewport();
callback(content);

Powered by Google App Engine
This is Rietveld 408576698