Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: components/printing/common/print_messages.h

Issue 2806083002: Remove PrintMsg_PrintPage_Params. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698