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

Unified Diff: ppapi/c/private/ppp_pdf.h

Issue 981843003: Printing: PDFs should only be fit to page if there is a size mismatch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf169120
Patch Set: rebase Created 5 years, 9 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
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppp_pdf.h
diff --git a/ppapi/c/private/ppp_pdf.h b/ppapi/c/private/ppp_pdf.h
index c3678e43d9f070e76fca2502f49495bcdde9394b..2a761b8618aaac0011f7cff8cdf7467a9050474b 100644
--- a/ppapi/c/private/ppp_pdf.h
+++ b/ppapi/c/private/ppp_pdf.h
@@ -40,8 +40,14 @@ struct PP_PdfPrintPresetOptions_Dev {
// DuplexMode to be used for printing.
PP_PrivateDuplexMode_Dev duplex;
+
+ // True if all the pages in the PDF are the same size.
+ PP_Bool is_page_size_uniform;
+
+ // Only valid if |is_page_size_uniform| is true. The page size.
+ PP_Size uniform_page_size;
};
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 12);
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 24);
struct PPP_Pdf_1_1 {
// Returns an absolute URL if the position is over a link.
« no previous file with comments | « pdf/pdfium/pdfium_engine.cc ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698