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 // IPC messages for printing. | 5 // IPC messages for printing. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 123 |
124 // Specifies dots per inch. | 124 // Specifies dots per inch. |
125 IPC_STRUCT_TRAITS_MEMBER(dpi) | 125 IPC_STRUCT_TRAITS_MEMBER(dpi) |
126 | 126 |
127 // Specifies the scale factor in percent | 127 // Specifies the scale factor in percent |
128 IPC_STRUCT_TRAITS_MEMBER(scale_factor) | 128 IPC_STRUCT_TRAITS_MEMBER(scale_factor) |
129 | 129 |
130 // Desired apparent dpi on paper. | 130 // Desired apparent dpi on paper. |
131 IPC_STRUCT_TRAITS_MEMBER(desired_dpi) | 131 IPC_STRUCT_TRAITS_MEMBER(desired_dpi) |
132 | 132 |
133 // Whether to rasterize a PDF for printing | |
134 IPC_STRUCT_TRAITS_MEMBER(rasterize_pdf) | |
135 | |
136 // Cookie for the document to ensure correctness. | 133 // Cookie for the document to ensure correctness. |
137 IPC_STRUCT_TRAITS_MEMBER(document_cookie) | 134 IPC_STRUCT_TRAITS_MEMBER(document_cookie) |
138 | 135 |
139 // Should only print currently selected text. | 136 // Should only print currently selected text. |
140 IPC_STRUCT_TRAITS_MEMBER(selection_only) | 137 IPC_STRUCT_TRAITS_MEMBER(selection_only) |
141 | 138 |
142 // Does the printer support alpha blending? | 139 // Does the printer support alpha blending? |
143 IPC_STRUCT_TRAITS_MEMBER(supports_alpha_blend) | 140 IPC_STRUCT_TRAITS_MEMBER(supports_alpha_blend) |
144 | 141 |
145 // *** Parameters below are used only for print preview. *** | 142 // *** Parameters below are used only for print preview. *** |
(...skipping 15 matching lines...) Expand all Loading... |
161 | 158 |
162 // Specifies if the header and footer should be rendered. | 159 // Specifies if the header and footer should be rendered. |
163 IPC_STRUCT_TRAITS_MEMBER(display_header_footer) | 160 IPC_STRUCT_TRAITS_MEMBER(display_header_footer) |
164 | 161 |
165 // Title string to be printed as header if requested by the user. | 162 // Title string to be printed as header if requested by the user. |
166 IPC_STRUCT_TRAITS_MEMBER(title) | 163 IPC_STRUCT_TRAITS_MEMBER(title) |
167 | 164 |
168 // URL string to be printed as footer if requested by the user. | 165 // URL string to be printed as footer if requested by the user. |
169 IPC_STRUCT_TRAITS_MEMBER(url) | 166 IPC_STRUCT_TRAITS_MEMBER(url) |
170 | 167 |
| 168 // Whether to rasterize a PDF for printing |
| 169 IPC_STRUCT_TRAITS_MEMBER(rasterize_pdf) |
| 170 |
171 // True if print backgrounds is requested by the user. | 171 // True if print backgrounds is requested by the user. |
172 IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds) | 172 IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds) |
173 IPC_STRUCT_TRAITS_END() | 173 IPC_STRUCT_TRAITS_END() |
174 | 174 |
175 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) | 175 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) |
176 // Parameters to render the page as a printed page. It must always be the same | 176 // Parameters to render the page as a printed page. It must always be the same |
177 // value for all the document. | 177 // value for all the document. |
178 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | 178 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) |
179 | 179 |
180 // The page number is the indicator of the square that should be rendered | 180 // The page number is the indicator of the square that should be rendered |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 | 487 |
488 // Tell the browser to show the print preview, when the document is sufficiently | 488 // Tell the browser to show the print preview, when the document is sufficiently |
489 // loaded such that the renderer can determine whether it is modifiable or not. | 489 // loaded such that the renderer can determine whether it is modifiable or not. |
490 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 490 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
491 bool /* is_modifiable */) | 491 bool /* is_modifiable */) |
492 | 492 |
493 // Notify the browser to set print presets based on source PDF document. | 493 // Notify the browser to set print presets based on source PDF document. |
494 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 494 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
495 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 495 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
496 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 496 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
OLD | NEW |