Chromium Code Reviews| 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); | |
| 85 | |
| 86 struct PP_PrintPresetOptions_Dev { | |
|
raymes
2014/09/24 04:54:39
I'd prefer to move this struct into PPP_Pdf (and n
raymes
2014/10/01 17:26:23
This part hasn't been addressed, it would be bette
Nikhil
2014/10/07 09:53:37
Done.
| |
| 87 PP_Bool is_scaling_disabled; | |
|
raymes
2014/09/24 04:54:39
Since we already have a PPP function to get whethe
Nikhil
2014/09/29 11:15:30
Pdf print preset requires four properties to be su
raymes
2014/10/01 17:26:23
Ok I think you're right that it's clearer that eve
Nikhil
2014/10/07 09:53:37
Done.
| |
| 88 int32_t copies; | |
| 89 PP_PrintDuplexMode_Dev duplex; | |
| 90 struct PP_PrintRange_Dev page_range; | |
| 91 int32_t page_range_count; | |
|
raymes
2014/09/24 04:54:39
Are the last 3 members of the struct used at all?
Nikhil
2014/09/29 11:15:30
They are not used right now. But I intend to suppo
raymes
2014/10/01 17:26:23
It's ok to keep them if they will be used, I didn'
Nikhil
2014/10/07 09:53:37
Acknowledged.
| |
| 92 }; | |
| 93 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_PrintPresetOptions_Dev, 24); | |
| 71 /** | 94 /** |
| 72 * @} | 95 * @} |
| 73 */ | 96 */ |
| 74 | 97 |
| 75 #endif /* PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ */ | 98 #endif /* PPAPI_C_DEV_PP_PRINT_SETTINGS_DEV_H_ */ |
| 76 | 99 |
| OLD | NEW |