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 /** | 6 /** |
7 * This file defines the struct for PrintSettings. | 7 * This file defines the struct for PrintSettings. |
8 */ | 8 */ |
9 | 9 |
10 [assert_size(4)] | 10 [assert_size(4)] |
(...skipping 12 matching lines...) Expand all Loading... |
23 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 | 23 PP_PRINTOUTPUTFORMAT_EMF = 1u << 3 |
24 }; | 24 }; |
25 | 25 |
26 [assert_size(4)] | 26 [assert_size(4)] |
27 enum PP_PrintScalingOption_Dev { | 27 enum PP_PrintScalingOption_Dev { |
28 PP_PRINTSCALINGOPTION_NONE = 0, | 28 PP_PRINTSCALINGOPTION_NONE = 0, |
29 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1, | 29 PP_PRINTSCALINGOPTION_FIT_TO_PRINTABLE_AREA = 1, |
30 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 | 30 PP_PRINTSCALINGOPTION_SOURCE_SIZE = 2 |
31 }; | 31 }; |
32 | 32 |
| 33 [assert_size(4)] |
| 34 enum PP_PrintDuplexMode_Dev { |
| 35 PP_PRINTDUPLEXMODE_NONE = 0, |
| 36 PP_PRINTDUPLEXMODE_SIMPLEX = 1, |
| 37 PP_PRINTDUPLEXMODE_LONG_EDGE = 2, |
| 38 PP_PRINTDUPLEXMODE_SHORT_EDGE = 3 |
| 39 }; |
| 40 |
33 [assert_size(60)] | 41 [assert_size(60)] |
34 struct PP_PrintSettings_Dev { | 42 struct PP_PrintSettings_Dev { |
35 /** This is the size of the printable area in points (1/72 of an inch). */ | 43 /** This is the size of the printable area in points (1/72 of an inch). */ |
36 PP_Rect printable_area; | 44 PP_Rect printable_area; |
37 PP_Rect content_area; | 45 PP_Rect content_area; |
38 PP_Size paper_size; | 46 PP_Size paper_size; |
39 int32_t dpi; | 47 int32_t dpi; |
40 PP_PrintOrientation_Dev orientation; | 48 PP_PrintOrientation_Dev orientation; |
41 PP_PrintScalingOption_Dev print_scaling_option; | 49 PP_PrintScalingOption_Dev print_scaling_option; |
42 PP_Bool grayscale; | 50 PP_Bool grayscale; |
43 /** Note that Chrome currently only supports PDF printing. */ | 51 /** Note that Chrome currently only supports PDF printing. */ |
44 PP_PrintOutputFormat_Dev format; | 52 PP_PrintOutputFormat_Dev format; |
45 }; | 53 }; |
| 54 |
| 55 [assert_size(8)] |
| 56 struct PP_PrintRange_Dev { |
| 57 int32_t from; |
| 58 int32_t to; |
| 59 }; |
| 60 |
| 61 [assert_size(24)] |
| 62 struct PP_PrintPresetOptions_Dev { |
| 63 PP_Bool is_scaling_disabled; |
| 64 int32_t copies; |
| 65 PP_PrintDuplexMode_Dev duplex; |
| 66 PP_PrintRange_Dev page_range; |
| 67 int32_t page_range_count; |
| 68 }; |
OLD | NEW |