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

Unified Diff: pdf/pdfium/pdfium_engine.cc

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (oop proxy, out-param) 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: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 42f69e7bf2a9bb30154015f0bd2269ff6f0a908b..5a62f373495c20bcc647022a718ea0461332a5ef 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2059,6 +2059,10 @@ bool PDFiumEngine::GetPrintScaling() {
return !!FPDF_VIEWERREF_GetPrintScaling(doc_);
}
+int PDFiumEngine::GetCopiesToPrint() {
+ return FPDF_VIEWERREF_GetNumCopies(doc_);
+}
+
void PDFiumEngine::AppendBlankPages(int num_pages) {
DCHECK(num_pages != 0);

Powered by Google App Engine
This is Rietveld 408576698