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

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

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.h
diff --git a/content/browser/devtools/protocol/page_handler.h b/content/browser/devtools/protocol/page_handler.h
index faace0adfaf25306aba30490bb643e2128e4f982..c49c6e7710b70bc20b3c926ace3feb007743f21c 100644
--- a/content/browser/devtools/protocol/page_handler.h
+++ b/content/browser/devtools/protocol/page_handler.h
@@ -77,7 +77,18 @@ class PageHandler : public DevToolsDomainHandler,
Maybe<int> quality,
Maybe<bool> from_surface,
std::unique_ptr<CaptureScreenshotCallback> callback) override;
- void PrintToPDF(std::unique_ptr<PrintToPDFCallback> callback) override;
+ void 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) override;
Response StartScreencast(Maybe<std::string> format,
Maybe<int> quality,
Maybe<int> max_width,

Powered by Google App Engine
This is Rietveld 408576698