| 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 10 matching lines...) Expand all Loading... |
| 21 } PP_PrivatePageTransformType; | 21 } PP_PrivatePageTransformType; |
| 22 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4); | 22 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrivatePageTransformType, 4); |
| 23 | 23 |
| 24 struct PP_PdfPrintPresetOptions_Dev { | 24 struct PP_PdfPrintPresetOptions_Dev { |
| 25 // Returns whether scaling is disabled. Returns same information as the | 25 // Returns whether scaling is disabled. Returns same information as the |
| 26 // PPP_Printing_Dev's method IsScalingDiabled(). | 26 // PPP_Printing_Dev's method IsScalingDiabled(). |
| 27 PP_Bool is_scaling_disabled; | 27 PP_Bool is_scaling_disabled; |
| 28 | 28 |
| 29 // Number of copies to be printed. | 29 // Number of copies to be printed. |
| 30 int32_t copies; | 30 int32_t copies; |
| 31 |
| 32 // DuplexMode to be used for printing. |
| 33 PP_PrintDuplexMode_Dev duplex; |
| 31 }; | 34 }; |
| 32 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 8); | 35 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PdfPrintPresetOptions_Dev, 12); |
| 33 | 36 |
| 34 struct PPP_Pdf_1_1 { | 37 struct PPP_Pdf_1_1 { |
| 35 // Returns an absolute URL if the position is over a link. | 38 // Returns an absolute URL if the position is over a link. |
| 36 PP_Var (*GetLinkAtPosition)(PP_Instance instance, | 39 PP_Var (*GetLinkAtPosition)(PP_Instance instance, |
| 37 PP_Point point); | 40 PP_Point point); |
| 38 | 41 |
| 39 // Requests that the plugin apply the given transform to its view. | 42 // Requests that the plugin apply the given transform to its view. |
| 40 void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type); | 43 void (*Transform)(PP_Instance instance, PP_PrivatePageTransformType type); |
| 41 | 44 |
| 42 // Return true if print preset options are updated from document. | 45 // Return true if print preset options are updated from document. |
| 43 PP_Bool (*GetPrintPresetOptionsFromDocument)( | 46 PP_Bool (*GetPrintPresetOptionsFromDocument)( |
| 44 PP_Instance instance, | 47 PP_Instance instance, |
| 45 PP_PdfPrintPresetOptions_Dev* options); | 48 PP_PdfPrintPresetOptions_Dev* options); |
| 46 }; | 49 }; |
| 47 | 50 |
| 48 typedef PPP_Pdf_1_1 PPP_Pdf; | 51 typedef PPP_Pdf_1_1 PPP_Pdf; |
| 49 | 52 |
| 50 #endif // PPAPI_C_PRIVATE_PPP_PDF_H_ | 53 #endif // PPAPI_C_PRIVATE_PPP_PDF_H_ |
| OLD | NEW |