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

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: 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 | « pdf/pdfium/pdfium_engine.h ('k') | ppapi/api/dev/pp_print_settings_dev.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdfium/pdfium_engine.cc
diff --git a/pdf/pdfium/pdfium_engine.cc b/pdf/pdfium/pdfium_engine.cc
index 1871238b5b084e0a0717c38659e91d527de64cae..213214f5311a35a1064722d5b26b97cb7d3cb06c 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -2387,6 +2387,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);
« no previous file with comments | « pdf/pdfium/pdfium_engine.h ('k') | ppapi/api/dev/pp_print_settings_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698