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

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 (update method name) Created 6 years, 5 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 d87b6dbfcf7f7507353a9cdb9e73a2003f171dde..fd47cf9105a82af8cb6030dfe5e3d5cf33e2e735 100644
--- a/pdf/pdfium/pdfium_engine.cc
+++ b/pdf/pdfium/pdfium_engine.cc
@@ -1975,6 +1975,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