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/pp_print_settings_dev.idl modified Wed Jun 13 09:14:31 2012. */ | 6 /* From dev/pp_print_settings_dev.idl modified Wed Jun 13 09:14:31 2012. */ |
7 | 7 |
8 #ifndef PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ |
9 #define PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ | 9 #define PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 | 40 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 |
41 } PP_PrintOutputFormat_Dev; | 41 } PP_PrintOutputFormat_Dev; |
42 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOutputFormat_Dev, 4); | 42 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintOutputFormat_Dev, 4); |
43 | 43 |
44 typedef enum { | 44 typedef enum { |
45 PP_PRINTSCALINGOPTION_NONE = 0, | 45 PP_PRINTSCALINGOPTION_NONE = 0, |
46 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1, | 46 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1, |
47 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 | 47 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 |
48 } PP_PrintScalingOption_Dev; | 48 } PP_PrintScalingOption_Dev; |
49 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintScalingOption_Dev, 4); | 49 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintScalingOption_Dev, 4); |
| 50 |
| 51 typedef enum { |
| 52 PP_PRINTDUPLEXMODE_NONE = 0, |
| 53 PP_PRINTDUPLEXMODE_SIMPLEX = 1, |
| 54 PP_PRINTDUPLEXMODE_LONG_EDGE = 2, |
| 55 PP_PRINTDUPLEXMODE_SHORT_EDGE = 3 |
| 56 } PP_PrintDuplexMode_Dev; |
| 57 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_PrintDuplexMode_Dev, 4); |
50 /** | 58 /** |
51 * @} | 59 * @} |
52 */ | 60 */ |
53 | 61 |
54 /** | 62 /** |
55 * @addtogroup Structs | 63 * @addtogroup Structs |
56 * @{ | 64 * @{ |
57 */ | 65 */ |
58 struct PP_PrintSettings_Dev { | 66 struct PP_PrintSettings_Dev { |
59 /** This is the size of the printable area in points (1/72 of an inch). */ | 67 /** This is the size of the printable area in points (1/72 of an inch). */ |
60 struct PP_Rect printable_area; | 68 struct PP_Rect printable_area; |
61 struct PP_Rect content_area; | 69 struct PP_Rect content_area; |
62 struct PP_Size paper_size; | 70 struct PP_Size paper_size; |
63 int32_t dpi; | 71 int32_t dpi; |
64 PP_PrintOrientation_Dev orientation; | 72 PP_PrintOrientation_Dev orientation; |
65 PP_PrintScalingOption_Dev print_scaling_option; | 73 PP_PrintScalingOption_Dev print_scaling_option; |
66 PP_Bool grayscale; | 74 PP_Bool grayscale; |
67 /** Note that Chrome currently only supports PDF printing. */ | 75 /** Note that Chrome currently only supports PDF printing. */ |
68 PP_PrintOutputFormat_Dev format; | 76 PP_PrintOutputFormat_Dev format; |
69 }; | 77 }; |
70 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 60); | 78 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintSettings_Dev, 60); |
| 79 |
| 80 struct PP_PrintRange_Dev { |
| 81 int32_t from; |
| 82 int32_t to; |
| 83 }; |
| 84 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintRange_Dev, 8); |
71 /** | 85 /** |
72 * @} | 86 * @} |
73 */ | 87 */ |
74 | 88 |
75 #endif /* PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ */ | 89 #endif /* PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ */ |
76 | 90 |
OLD | NEW |