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

Unified Diff: content/renderer/pepper/pepper_webplugin_impl.cc

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | pdf/instance.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_webplugin_impl.cc
diff --git a/content/renderer/pepper/pepper_webplugin_impl.cc b/content/renderer/pepper/pepper_webplugin_impl.cc
index ecdd9e5b857fda17a698f17809a0b2e414ab5f3b..97e08793cd400f0e97f864c22dc4d8b14bd611df 100644
--- a/content/renderer/pepper/pepper_webplugin_impl.cc
+++ b/content/renderer/pepper/pepper_webplugin_impl.cc
@@ -28,6 +28,7 @@
#include "third_party/WebKit/public/web/WebPluginContainer.h"
#include "third_party/WebKit/public/web/WebPluginParams.h"
#include "third_party/WebKit/public/web/WebPrintParams.h"
+#include "third_party/WebKit/public/web/WebPrintPresetOptions.h"
#include "third_party/WebKit/public/web/WebPrintScalingOption.h"
#include "url/gurl.h"
@@ -270,6 +271,11 @@ bool PepperWebPluginImpl::printPage(int page_number, blink::WebCanvas* canvas) {
void PepperWebPluginImpl::printEnd() { return instance_->PrintEnd(); }
+bool PepperWebPluginImpl::getPrintPresetOptionsFromDocument(
+ blink::WebPrintPresetOptions* preset_options) {
+ return instance_->GetPrintPresetOptionsFromDocument(preset_options);
+}
+
bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); }
void PepperWebPluginImpl::rotateView(RotationType type) {
« no previous file with comments | « content/renderer/pepper/pepper_webplugin_impl.h ('k') | pdf/instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698