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

Unified Diff: public/web/WebPlugin.h

Issue 591053002: Support print preset options for pdf document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « public/web/WebLocalFrame.h ('k') | public/web/WebPrintPresetOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPlugin.h
diff --git a/public/web/WebPlugin.h b/public/web/WebPlugin.h
index 7738d1e4c065f70e5197ff177d18b0e0aadf906b..d2493941ab0daf373d2973f29c2bc0d12f94f6f6 100644
--- a/public/web/WebPlugin.h
+++ b/public/web/WebPlugin.h
@@ -54,6 +54,7 @@ struct WebCompositionUnderline;
struct WebCursorInfo;
struct WebPluginParams;
struct WebPrintParams;
+struct WebPrintPresetOptions;
struct WebPoint;
struct WebRect;
struct WebTextInputInfo;
@@ -121,8 +122,8 @@ public:
// Returns true if the printed content should not be scaled to
// the printer's printable area.
virtual bool isPrintScalingDisabled() { return false; }
- // Returns number of copies to be printed.
- virtual int getCopiesToPrint() { return 1; }
+ // Returns true on success and sets the out parameter to the print preset options for the document.
+ virtual bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) { return false; }
// Sets up printing with the specified printParams. Returns the number of
// pages to be printed at these settings.
« no previous file with comments | « public/web/WebLocalFrame.h ('k') | public/web/WebPrintPresetOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698