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 144e95cdff7306976bdc3e13389f25a66dda16f5..2779dc85594e37771f61985769ed1936b7821d36 100644 |
| --- a/ppapi/c/private/ppp_pdf.h |
| +++ b/ppapi/c/private/ppp_pdf.h |
| @@ -5,12 +5,13 @@ |
| #ifndef PPAPI_C_PRIVATE_PPP_PDF_H_ |
| #define PPAPI_C_PRIVATE_PPP_PDF_H_ |
| +#include "ppapi/c/dev/pp_print_settings_dev.h" |
| #include "ppapi/c/pp_instance.h" |
| #include "ppapi/c/pp_point.h" |
| #include "ppapi/c/pp_var.h" |
| -#define PPP_PDF_INTERFACE_1 "PPP_Pdf;1" |
| -#define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_1 |
| +#define PPP_PDF_INTERFACE_2 "PPP_Pdf;2" |
|
dmichael (off chromium)
2014/09/22 18:11:51
For something this small we would usually go to 1.
Nikhil
2014/09/23 10:32:28
Done.
|
| +#define PPP_PDF_INTERFACE PPP_PDF_INTERFACE_2 |
| typedef enum { |
| // Rotates the page 90 degrees clockwise from its current orientation. |
| @@ -20,15 +21,20 @@ typedef enum { |
| } PP_PrivatePageTransformType; |
| PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4); |
| -struct PPP_Pdf_1 { |
| +struct PPP_Pdf_2 { |
| // Returns an absolute URL if the position is over a link. |
| PP_Var (*GetLinkAtPosition)(PP_Instance instance, |
| PP_Point point); |
| // Requests that the plugin apply the given transform to its view. |
| void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type); |
| + |
| + // Return true if print preset options are updated from document. |
| + PP_Bool (*GetPrintPresetOptionsFromDocument)( |
| + PP_Instance instance, |
| + PP_PrintPresetOptions_Dev& options); |
| }; |
| -typedef PPP_Pdf_1 PPP_Pdf; |
| +typedef PPP_Pdf_2 PPP_Pdf; |
| #endif // PPAPI_C_PRIVATE_PPP_PDF_H_ |