| 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 Fri Nov 18 15:58:00 2011. */ | 6 /* From dev/ppp_printing_dev.idl modified Wed Feb 22 12:44:39 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/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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 94 * pages required for the print output at the given page size (0 indicates | 94 * pages required for the print output at the given page size (0 indicates |
| 95 * a failure). | 95 * a failure). |
| 96 */ | 96 */ |
| 97 int32_t (*Begin)(PP_Instance instance, | 97 int32_t (*Begin)(PP_Instance instance, |
| 98 const struct PP_PrintSettings_Dev* print_settings); | 98 const struct PP_PrintSettings_Dev* print_settings); |
| 99 /** | 99 /** |
| 100 * Prints the specified pages using the format specified in Begin. | 100 * Prints the specified pages using the format specified in Begin. |
| 101 * Returns a resource that represents the printed output. | 101 * Returns a resource that represents the printed output. |
| 102 * This is a PPB_ImageData resource if the output format is | 102 * This is a PPB_ImageData resource if the output format is |
| 103 * PP_PrintOutputFormat_Raster and a PPB_Blob otherwise. Returns 0 on | 103 * PP_PrintOutputFormat_Raster and a PPB_Buffer otherwise. Returns 0 on |
| 104 * failure. | 104 * failure. |
| 105 */ | 105 */ |
| 106 PP_Resource (*PrintPages)( | 106 PP_Resource (*PrintPages)( |
| 107 PP_Instance instance, | 107 PP_Instance instance, |
| 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 | 118 |
| 119 typedef struct PPP_Printing_Dev_0_5 PPP_Printing_Dev; | 119 typedef struct PPP_Printing_Dev_0_5 PPP_Printing_Dev; |
| 120 /** | 120 /** |
| 121 * @} | 121 * @} |
| 122 */ | 122 */ |
| 123 | 123 |
| 124 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ | 124 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ |
| 125 | 125 |
| OLD | NEW |