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

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: 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 | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPluginContainerImpl.h
diff --git a/Source/web/WebPluginContainerImpl.h b/Source/web/WebPluginContainerImpl.h
index 690a758fbe00f3b9ba68fcf7f76c6ebe4ffc5784..bb04ecc6f4b363424b70adec36b15597d0a30696 100644
--- a/Source/web/WebPluginContainerImpl.h
+++ b/Source/web/WebPluginContainerImpl.h
@@ -60,6 +60,7 @@ class WebPluginLoadObserver;
class WheelEvent;
class Widget;
struct WebPrintParams;
+struct WebPrintPresetOptions;
class WebPluginContainerImpl final : public PluginView, public WebPluginContainer, public FrameDestructionObserver {
WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WebPluginContainerImpl);
@@ -131,8 +132,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 on success and sets the out parameter to the print preset options for the document.
+ 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.
« no previous file with comments | « Source/web/WebLocalFrameImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698