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

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

Issue 974183003: Print Preview: Support the duplex preset in PDFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tsepez comments Created 5 years, 10 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 d5dee379dee5a57b67a908ef2c60643e4053c305..c3678e43d9f070e76fca2502f49495bcdde9394b 100644
--- a/ppapi/c/private/ppp_pdf.h
+++ b/ppapi/c/private/ppp_pdf.h
@@ -21,6 +21,15 @@ typedef enum {
} PP_PrivatePageTransformType;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4);
+typedef enum {
+ PP_PRIVATEDUPLEXMODE_NONE = 0,
+ PP_PRIVATEDUPLEXMODE_SIMPLEX = 1,
+ PP_PRIVATEDUPLEXMODE_SHORT_EDGE = 2,
+ PP_PRIVATEDUPLEXMODE_LONG_EDGE = 3,
+ PP_PRIVATEDUPLEXMODE_LAST = PP_PRIVATEDUPLEXMODE_LONG_EDGE
+} PP_PrivateDuplexMode_Dev;
+PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivateDuplexMode_Dev, 4);
+
struct PP_PdfPrintPresetOptions_Dev {
// Returns whether scaling is disabled. Returns same information as the
// PPP_Printing_Dev's method IsScalingDiabled().
@@ -28,8 +37,11 @@ struct PP_PdfPrintPresetOptions_Dev {
// Number of copies to be printed.
int32_t copies;
+
+ // DuplexMode to be used for printing.
+ PP_PrivateDuplexMode_Dev duplex;
};
-PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 8);
+PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 12);
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