| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
| 6 /* From dev/ppp_printing_dev.idl modified Wed Jun 13 09:20:40 2012. */ | 6 /* From dev/ppp_printing_dev.idl modified Mon Jul 23 16:49:57 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPP_PRINTING_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPP_PRINTING_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPP_PRINTING_DEV_H_ | 9 #define PPAPI_C_DEV_PPP_PRINTING_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/dev/pp_print_settings_dev.h" | 11 #include "ppapi/c/dev/pp_print_settings_dev.h" |
| 12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_point.h" | 15 #include "ppapi/c/pp_point.h" |
| 16 #include "ppapi/c/pp_rect.h" | 16 #include "ppapi/c/pp_rect.h" |
| 17 #include "ppapi/c/pp_resource.h" | 17 #include "ppapi/c/pp_resource.h" |
| 18 #include "ppapi/c/pp_size.h" | 18 #include "ppapi/c/pp_size.h" |
| 19 #include "ppapi/c/pp_stdint.h" | 19 #include "ppapi/c/pp_stdint.h" |
| 20 | 20 |
| 21 #define PPP_PRINTING_DEV_INTERFACE_0_6 "PPP_Printing(Dev);0.6" | 21 #define PPP_PRINTING_DEV_INTERFACE_0_7 "PPP_Printing(Dev);0.7" |
| 22 #define PPP_PRINTING_DEV_INTERFACE PPP_PRINTING_DEV_INTERFACE_0_6 | 22 #define PPP_PRINTING_DEV_INTERFACE PPP_PRINTING_DEV_INTERFACE_0_7 |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * @file | 25 * @file |
| 26 * Definition of the PPP_Printing interface. | 26 * Definition of the PPP_Printing interface. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * @addtogroup Structs | 31 * @addtogroup Structs |
| 32 * @{ | 32 * @{ |
| 33 */ | 33 */ |
| 34 /** | 34 /** |
| 35 * Specifies a contiguous range of page numbers to be printed. | 35 * Specifies a contiguous range of page numbers to be printed. |
| 36 * The page numbers use a zero-based index. | 36 * The page numbers use a zero-based index. |
| 37 */ | 37 */ |
| 38 struct PP_PrintPageNumberRange_Dev { | 38 struct PP_PrintPageNumberRange_Dev { |
| 39 uint32_t first_page_number; | 39 uint32_t first_page_number; |
| 40 uint32_t last_page_number; | 40 uint32_t last_page_number; |
| 41 }; | 41 }; |
| 42 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); | 42 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); |
| 43 /** | 43 /** |
| 44 * @} | 44 * @} |
| 45 */ | 45 */ |
| 46 | 46 |
| 47 /** | 47 /** |
| 48 * @addtogroup Interfaces | 48 * @addtogroup Interfaces |
| 49 * @{ | 49 * @{ |
| 50 */ | 50 */ |
| 51 struct PPP_Printing_Dev_0_6 { | 51 struct PPP_Printing_Dev_0_7 { |
| 52 /** | 52 /** |
| 53 * Returns a bit field representing the supported print output formats. For | 53 * Returns a bit field representing the supported print output formats. For |
| 54 * example, if only PDF and PostScript are supported, | 54 * example, if only PDF and PostScript are supported, |
| 55 * QuerySupportedFormats returns a value equivalent to: | 55 * QuerySupportedFormats returns a value equivalent to: |
| 56 * (PP_PRINTOUTPUTFORMAT_PDF | PP_PRINTOUTPUTFORMAT_POSTSCRIPT) | 56 * (PP_PRINTOUTPUTFORMAT_PDF | PP_PRINTOUTPUTFORMAT_POSTSCRIPT) |
| 57 */ | 57 */ |
| 58 uint32_t (*QuerySupportedFormats)(PP_Instance instance); | 58 uint32_t (*QuerySupportedFormats)(PP_Instance instance); |
| 59 /** | 59 /** |
| 60 * Begins a print session with the given print settings. Calls to PrintPages | 60 * Begins a print session with the given print settings. Calls to PrintPages |
| 61 * can only be made after a successful call to Begin. Returns the number of | 61 * can only be made after a successful call to Begin. Returns the number of |
| (...skipping 13 matching lines...) Expand all Loading... |
| 75 uint32_t page_range_count); | 75 uint32_t page_range_count); |
| 76 /** Ends the print session. Further calls to PrintPages will fail. */ | 76 /** Ends the print session. Further calls to PrintPages will fail. */ |
| 77 void (*End)(PP_Instance instance); | 77 void (*End)(PP_Instance instance); |
| 78 /** | 78 /** |
| 79 * Returns true if the current content should be printed into the full page | 79 * Returns true if the current content should be printed into the full page |
| 80 * and not scaled down to fit within the printer's printable area. | 80 * and not scaled down to fit within the printer's printable area. |
| 81 */ | 81 */ |
| 82 PP_Bool (*IsScalingDisabled)(PP_Instance instance); | 82 PP_Bool (*IsScalingDisabled)(PP_Instance instance); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 typedef struct PPP_Printing_Dev_0_6 PPP_Printing_Dev; | 85 typedef struct PPP_Printing_Dev_0_7 PPP_Printing_Dev; |
| 86 /** | 86 /** |
| 87 * @} | 87 * @} |
| 88 */ | 88 */ |
| 89 | 89 |
| 90 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ | 90 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ |
| 91 | 91 |
| OLD | NEW |