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

Unified Diff: Source/web/WebPluginContainerImpl.h

Issue 591053002: Support print preset options for pdf document (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: out-params should be by pointer Created 6 years, 3 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: Source/web/WebPluginContainerImpl.h
diff --git a/Source/web/WebPluginContainerImpl.h b/Source/web/WebPluginContainerImpl.h
index 5ff3dcaf5a794f24ed46f98530be968f5bdd365e..d51d71c7de9fc4d603bc2e1551cc274dd0e27914 100644
--- a/Source/web/WebPluginContainerImpl.h
+++ b/Source/web/WebPluginContainerImpl.h
@@ -62,6 +62,7 @@ class WebExternalTextureLayer;
class WheelEvent;
class Widget;
struct WebPrintParams;
+struct WebPrintPresetOptions;
class WebPluginContainerImpl FINAL
: public PluginView
@@ -138,8 +139,8 @@ public:
// If the plugin content should not be scaled to the printable area of
// the page, then this method should return true.
bool isPrintScalingDisabled() const;
- // Returns number of copies to be printed.
- int getCopiesToPrint() const;
+ // Returns true if print preset options are updated from document.
raymes 2014/09/29 05:24:14 nit: // Returns true on success and sets the out p
Nikhil 2014/10/09 08:43:56 Done.
+ bool getPrintPresetOptionsFromDocument(WebPrintPresetOptions*) const;
// Sets up printing at the specified WebPrintParams. Returns the number of pages to be printed at these settings.
int printBegin(const WebPrintParams&) const;
// Prints the page specified by pageNumber (0-based index) into the supplied canvas.

Powered by Google App Engine
This is Rietveld 408576698