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 Feb 22 12:44:39 2012. */ | 6 /* From dev/ppp_printing_dev.idl modified Wed Apr 18 13:35:22 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 * @} | 49 * @} |
50 */ | 50 */ |
51 | 51 |
52 /** | 52 /** |
53 * @addtogroup Structs | 53 * @addtogroup Structs |
54 * @{ | 54 * @{ |
55 */ | 55 */ |
56 struct PP_PrintSettings_Dev { | 56 struct PP_PrintSettings_Dev { |
57 /** This is the size of the printable area in points (1/72 of an inch) */ | 57 /** This is the size of the printable area in points (1/72 of an inch) */ |
58 struct PP_Rect printable_area; | 58 struct PP_Rect printable_area; |
| 59 struct PP_Rect content_area; |
| 60 struct PP_Size paper_size; |
59 int32_t dpi; | 61 int32_t dpi; |
60 PP_PrintOrientation_Dev orientation; | 62 PP_PrintOrientation_Dev orientation; |
61 PP_Bool grayscale; | 63 PP_Bool grayscale; |
| 64 PP_Bool fit_to_paper_size; |
62 PP_PrintOutputFormat_Dev format; | 65 PP_PrintOutputFormat_Dev format; |
63 }; | 66 }; |
64 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 32); | 67 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 60); |
65 | 68 |
66 /** | 69 /** |
67 * Specifies a contiguous range of page numbers to be printed. | 70 * Specifies a contiguous range of page numbers to be printed. |
68 * The page numbers use a zero-based index. | 71 * The page numbers use a zero-based index. |
69 */ | 72 */ |
70 struct PP_PrintPageNumberRange_Dev { | 73 struct PP_PrintPageNumberRange_Dev { |
71 uint32_t first_page_number; | 74 uint32_t first_page_number; |
72 uint32_t last_page_number; | 75 uint32_t last_page_number; |
73 }; | 76 }; |
74 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); | 77 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPageNumberRange_Dev, 8); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 PP_Bool (*IsScalingDisabled)(PP_Instance instance); | 119 PP_Bool (*IsScalingDisabled)(PP_Instance instance); |
117 }; | 120 }; |
118 | 121 |
119 typedef struct PPP_Printing_Dev_0_5 PPP_Printing_Dev; | 122 typedef struct PPP_Printing_Dev_0_5 PPP_Printing_Dev; |
120 /** | 123 /** |
121 * @} | 124 * @} |
122 */ | 125 */ |
123 | 126 |
124 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ | 127 #endif /* PPAPI_C_DEV_PPP_PRINTING_DEV_H_ */ |
125 | 128 |
OLD | NEW |