| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 Thu Nov 17 13:26:05 2011. */ | 6 /* From dev/ppp_printing_dev.idl modified Fri Nov 18 15:58:00 2011. */ |
| 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/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
| 13 #include "ppapi/c/pp_macros.h" | 13 #include "ppapi/c/pp_macros.h" |
| 14 #include "ppapi/c/pp_point.h" | 14 #include "ppapi/c/pp_point.h" |
| 15 #include "ppapi/c/pp_rect.h" | 15 #include "ppapi/c/pp_rect.h" |
| 16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 }; | 73 }; |
| 74 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); | 74 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); |
| 75 /** | 75 /** |
| 76 * @} | 76 * @} |
| 77 */ | 77 */ |
| 78 | 78 |
| 79 /** | 79 /** |
| 80 * @addtogroup Interfaces | 80 * @addtogroup Interfaces |
| 81 * @{ | 81 * @{ |
| 82 */ | 82 */ |
| 83 struct PPP_Printing_Dev { | 83 struct PPP_Printing_Dev_0_5 { |
| 84 /** | 84 /** |
| 85 * Returns a bit field representing the supported print output formats. For | 85 * Returns a bit field representing the supported print output formats. For |
| 86 * example, if only Raster and PostScript are supported, | 86 * example, if only Raster and PostScript are supported, |
| 87 * QuerySupportedFormats returns a value equivalent to: | 87 * QuerySupportedFormats returns a value equivalent to: |
| 88 * (PP_PRINTOUTPUTFORMAT_RASTER | PP_PRINTOUTPUTFORMAT_POSTSCRIPT) | 88 * (PP_PRINTOUTPUTFORMAT_RASTER | PP_PRINTOUTPUTFORMAT_POSTSCRIPT) |
| 89 */ | 89 */ |
| 90 uint32_t (*QuerySupportedFormats)(PP_Instance instance); | 90 uint32_t (*QuerySupportedFormats)(PP_Instance instance); |
| 91 /** | 91 /** |
| 92 * Begins a print session with the given print settings. Calls to PrintPage | 92 * Begins a print session with the given print settings. Calls to PrintPage |
| 93 * can only be made after a successful call to Begin. Returns the number of | 93 * can only be made after a successful call to Begin. Returns the number of |
| (...skipping 14 matching lines...) Expand all Loading... |
| 108 const struct PP_PrintPageNumberRange_Dev* page_ranges, | 108 const struct PP_PrintPageNumberRange_Dev* page_ranges, |
| 109 uint32_t page_range_count); | 109 uint32_t page_range_count); |
| 110 /** Ends the print session. Further calls to PrintPage will fail. */ | 110 /** Ends the print session. Further calls to PrintPage will fail. */ |
| 111 void (*End)(PP_Instance instance); | 111 void (*End)(PP_Instance instance); |
| 112 /** | 112 /** |
| 113 * Returns true if the current content should be printed into the full page | 113 * Returns true if the current content should be printed into the full page |
| 114 * and not scaled down to fit within the printer's printable area. | 114 * and not scaled down to fit within the printer's printable area. |
| 115 */ | 115 */ |
| 116 PP_Bool (*IsScalingDisabled)(PP_Instance instance); | 116 PP_Bool (*IsScalingDisabled)(PP_Instance instance); |
| 117 }; | 117 }; |
| 118 |
| 119 typedef struct PPP_Printing_Dev_0_5 PPP_Printing_Dev; |
| 118 /** | 120 /** |
| 119 * @} | 121 * @} |
| 120 */ | 122 */ |
| 121 | 123 |
| 122 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ | 124 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ |
| 123 | 125 |
| OLD | NEW |