| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // URL string to be printed as footer if requested by the user. | 161 // URL string to be printed as footer if requested by the user. |
| 162 IPC_STRUCT_TRAITS_MEMBER(url) | 162 IPC_STRUCT_TRAITS_MEMBER(url) |
| 163 | 163 |
| 164 // Whether to rasterize a PDF for printing | 164 // Whether to rasterize a PDF for printing |
| 165 IPC_STRUCT_TRAITS_MEMBER(rasterize_pdf) | 165 IPC_STRUCT_TRAITS_MEMBER(rasterize_pdf) |
| 166 | 166 |
| 167 // True if print backgrounds is requested by the user. | 167 // True if print backgrounds is requested by the user. |
| 168 IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds) | 168 IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds) |
| 169 IPC_STRUCT_TRAITS_END() | 169 IPC_STRUCT_TRAITS_END() |
| 170 | 170 |
| 171 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) | |
| 172 // Parameters to render the page as a printed page. It must always be the same | |
| 173 // value for all the document. | |
| 174 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | |
| 175 | |
| 176 // The page number is the indicator of the square that should be rendered | |
| 177 // according to the layout specified in PrintMsg_Print_Params. | |
| 178 IPC_STRUCT_MEMBER(int, page_number) | |
| 179 IPC_STRUCT_END() | |
| 180 | |
| 181 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) | 171 IPC_STRUCT_TRAITS_BEGIN(printing::PageRange) |
| 182 IPC_STRUCT_TRAITS_MEMBER(from) | 172 IPC_STRUCT_TRAITS_MEMBER(from) |
| 183 IPC_STRUCT_TRAITS_MEMBER(to) | 173 IPC_STRUCT_TRAITS_MEMBER(to) |
| 184 IPC_STRUCT_TRAITS_END() | 174 IPC_STRUCT_TRAITS_END() |
| 185 | 175 |
| 186 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) | 176 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| 187 IPC_STRUCT_TRAITS_BEGIN(PrintHostMsg_RequestPrintPreview_Params) | 177 IPC_STRUCT_TRAITS_BEGIN(PrintHostMsg_RequestPrintPreview_Params) |
| 188 IPC_STRUCT_TRAITS_MEMBER(is_modifiable) | 178 IPC_STRUCT_TRAITS_MEMBER(is_modifiable) |
| 189 IPC_STRUCT_TRAITS_MEMBER(webnode_only) | 179 IPC_STRUCT_TRAITS_MEMBER(webnode_only) |
| 190 IPC_STRUCT_TRAITS_MEMBER(has_selection) | 180 IPC_STRUCT_TRAITS_MEMBER(has_selection) |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 | 473 |
| 484 // Tell the browser to show the print preview, when the document is sufficiently | 474 // Tell the browser to show the print preview, when the document is sufficiently |
| 485 // loaded such that the renderer can determine whether it is modifiable or not. | 475 // loaded such that the renderer can determine whether it is modifiable or not. |
| 486 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 476 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
| 487 bool /* is_modifiable */) | 477 bool /* is_modifiable */) |
| 488 | 478 |
| 489 // Notify the browser to set print presets based on source PDF document. | 479 // Notify the browser to set print presets based on source PDF document. |
| 490 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 480 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
| 491 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 481 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
| 492 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 482 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| OLD | NEW |