Chromium Code Reviews| 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..0d87ce4e46ace7213db63a07b17b215121eb46c1 100644 |
| --- a/ppapi/c/private/ppp_pdf.h |
| +++ b/ppapi/c/private/ppp_pdf.h |
| @@ -21,6 +21,14 @@ 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_Dev; |
| +PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivateDuplexMode_Dev, 4); |
|
Tom Sepez
2015/03/05 17:39:06
nit: typically the pattern used here is to have a
Lei Zhang
2015/03/05 19:06:35
Done.
|
| + |
| struct PP_PdfPrintPresetOptions_Dev { |
| // Returns whether scaling is disabled. Returns same information as the |
| // PPP_Printing_Dev's method IsScalingDiabled(). |
| @@ -28,8 +36,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. |