| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PPAPI_C_PRIVATE_PPP_PDF_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPP_PDF_H_ |
| 6 #define PPAPI_C_PRIVATE_PPP_PDF_H_ | 6 #define PPAPI_C_PRIVATE_PPP_PDF_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/pp_print_settings_dev.h" | 8 #include "ppapi/c/dev/pp_print_settings_dev.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_point.h" | 10 #include "ppapi/c/pp_point.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 struct PP_PdfPrintPresetOptions_Dev { | 33 struct PP_PdfPrintPresetOptions_Dev { |
| 34 // Returns whether scaling is disabled. Returns same information as the | 34 // Returns whether scaling is disabled. Returns same information as the |
| 35 // PPP_Printing_Dev's method IsScalingDiabled(). | 35 // PPP_Printing_Dev's method IsScalingDiabled(). |
| 36 PP_Bool is_scaling_disabled; | 36 PP_Bool is_scaling_disabled; |
| 37 | 37 |
| 38 // Number of copies to be printed. | 38 // Number of copies to be printed. |
| 39 int32_t copies; | 39 int32_t copies; |
| 40 | 40 |
| 41 // DuplexMode to be used for printing. | 41 // DuplexMode to be used for printing. |
| 42 PP_PrivateDuplexMode_Dev duplex; | 42 PP_PrivateDuplexMode_Dev duplex; |
| 43 |
| 44 // True if all the pages in the PDF are the same size. |
| 45 PP_Bool is_page_size_uniform; |
| 46 |
| 47 // Only valid if |is_page_size_uniform| is true. The page size. |
| 48 PP_Size uniform_page_size; |
| 43 }; | 49 }; |
| 44 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 12); | 50 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 24); |
| 45 | 51 |
| 46 struct PPP_Pdf_1_1 { | 52 struct PPP_Pdf_1_1 { |
| 47 // Returns an absolute URL if the position is over a link. | 53 // Returns an absolute URL if the position is over a link. |
| 48 PP_Var (*GetLinkAtPosition)(PP_Instance instance, | 54 PP_Var (*GetLinkAtPosition)(PP_Instance instance, |
| 49 PP_Point point); | 55 PP_Point point); |
| 50 | 56 |
| 51 // Requests that the plugin apply the given transform to its view. | 57 // Requests that the plugin apply the given transform to its view. |
| 52 void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type); | 58 void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type); |
| 53 | 59 |
| 54 // Return true if print preset options are updated from document. | 60 // Return true if print preset options are updated from document. |
| 55 PP_Bool (*GetPrintPresetOptionsFromDocument)( | 61 PP_Bool (*GetPrintPresetOptionsFromDocument)( |
| 56 PP_Instance instance, | 62 PP_Instance instance, |
| 57 PP_PdfPrintPresetOptions_Dev* options); | 63 PP_PdfPrintPresetOptions_Dev* options); |
| 58 }; | 64 }; |
| 59 | 65 |
| 60 typedef PPP_Pdf_1_1 PPP_Pdf; | 66 typedef PPP_Pdf_1_1 PPP_Pdf; |
| 61 | 67 |
| 62 #endif // PPAPI_C_PRIVATE_PPP_PDF_H_ | 68 #endif // PPAPI_C_PRIVATE_PPP_PDF_H_ |
| OLD | NEW |