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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/ScreenCaptureModel.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/sdk/ScreenCaptureModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/ScreenCaptureModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/ScreenCaptureModel.js
index 5851b84651c808e332d08b0b55f5ac5ac0c3ed17..f9db77e1d9dfd5deb0f9881022e81cba9962218b 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/ScreenCaptureModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/ScreenCaptureModel.js
@@ -43,12 +43,13 @@ SDK.ScreenCaptureModel = class extends SDK.SDKModel {
/**
* @param {string} format
* @param {number} quality
+ * @param {boolean|undefined} fromSurface
dgozman 2017/03/08 19:21:37 Let's remove this parameter, and always pass false
dvallet 2017/03/09 06:19:47 Done.
* @return {!Promise<?string>}
*/
- captureScreenshot(format, quality) {
+ captureScreenshot(format, quality, fromSurface) {
var fulfill;
var promise = new Promise(callback => fulfill = callback);
- this._agent.captureScreenshot(format, quality, (error, content) => {
+ this._agent.captureScreenshot(format, quality, fromSurface, (error, content) => {
if (error)
console.error(error);
fulfill(error ? null : content);

Powered by Google App Engine
This is Rietveld 408576698