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

Unified Diff: content/browser/devtools/protocol/page_handler.cc

Issue 2829973002: add customized printing setting for headless (Closed)
Patch Set: add skia as public_deps instead Created 3 years, 7 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: content/browser/devtools/protocol/page_handler.cc
diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
index d4bc036be4ceba26772e33b95041934d4a4df493..59cb25ce078356b4304487b84e1e26704e0fd3a2 100644
--- a/content/browser/devtools/protocol/page_handler.cc
+++ b/content/browser/devtools/protocol/page_handler.cc
@@ -298,7 +298,18 @@ void PageHandler::CaptureScreenshot(
from_surface.fromMaybe(false));
}
-void PageHandler::PrintToPDF(std::unique_ptr<PrintToPDFCallback> callback) {
+void PageHandler::PrintToPDF(Maybe<bool> landscape,
+ Maybe<bool> display_header_footer,
+ Maybe<bool> print_background,
+ Maybe<double> scale,
+ Maybe<double> paper_width,
+ Maybe<double> paper_height,
+ Maybe<double> margin_top,
+ Maybe<double> margin_bottom,
+ Maybe<double> margin_left,
+ Maybe<double> margin_right,
+ Maybe<String> page_ranges,
+ std::unique_ptr<PrintToPDFCallback> callback) {
callback->sendFailure(Response::Error("PrintToPDF is not implemented"));
return;
}

Powered by Google App Engine
This is Rietveld 408576698