diff options
author | thestig <thestig@chromium.org> | 2015-03-05 13:06:02 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-05 21:07:12 +0000 |
commit | b335e7d621465955cf8b733660f82ffe0aab6de2 (patch) | |
tree | c1bb8f6fa3a2cc37147bf82b54d937e8e08ecb39 /ppapi/c/private | |
parent | c285abaea4ed9dbe8c9dcc285d6d4acc8676cd2f (diff) | |
download | chromium_src-b335e7d621465955cf8b733660f82ffe0aab6de2.zip chromium_src-b335e7d621465955cf8b733660f82ffe0aab6de2.tar.gz chromium_src-b335e7d621465955cf8b733660f82ffe0aab6de2.tar.bz2 |
Print Preview: Support the duplex preset in PDFs.
The preset from the PDF document gets plumbed all the way to print
preview, but the ShortEdge setting is ignored at the end because print
preview does not support it yet.
BUG=169120
Review URL: https://codereview.chromium.org/974183003
Cr-Commit-Position: refs/heads/master@{#319324}
Diffstat (limited to 'ppapi/c/private')
-rw-r--r-- | ppapi/c/private/ppp_pdf.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/ppapi/c/private/ppp_pdf.h b/ppapi/c/private/ppp_pdf.h index d5dee37..c3678e4 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. |