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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 | 280 |
281 // Size of the metafile data. | 281 // Size of the metafile data. |
282 IPC_STRUCT_MEMBER(uint32, data_size) | 282 IPC_STRUCT_MEMBER(uint32, data_size) |
283 | 283 |
284 // Cookie for the document to ensure correctness. | 284 // Cookie for the document to ensure correctness. |
285 IPC_STRUCT_MEMBER(int, document_cookie) | 285 IPC_STRUCT_MEMBER(int, document_cookie) |
286 | 286 |
287 // Page number. | 287 // Page number. |
288 IPC_STRUCT_MEMBER(int, page_number) | 288 IPC_STRUCT_MEMBER(int, page_number) |
289 | 289 |
290 #if defined(OS_WIN) && !defined(WIN_PDF_METAFILE_FOR_PRINTING) | |
291 // Shrink factor used to render this page. | |
292 IPC_STRUCT_MEMBER(double, actual_shrink) | |
293 #endif // OS_WIN && !WIN_PDF_METAFILE_FOR_PRINTING | |
294 | |
295 // The size of the page the page author specified. | 290 // The size of the page the page author specified. |
296 IPC_STRUCT_MEMBER(gfx::Size, page_size) | 291 IPC_STRUCT_MEMBER(gfx::Size, page_size) |
297 | 292 |
298 // The printable area the page author specified. | 293 // The printable area the page author specified. |
299 IPC_STRUCT_MEMBER(gfx::Rect, content_area) | 294 IPC_STRUCT_MEMBER(gfx::Rect, content_area) |
300 IPC_STRUCT_END() | 295 IPC_STRUCT_END() |
301 | 296 |
302 // Parameters for the IPC message ViewHostMsg_ScriptedPrint | 297 // Parameters for the IPC message ViewHostMsg_ScriptedPrint |
303 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) | 298 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) |
304 IPC_STRUCT_MEMBER(int, cookie) | 299 IPC_STRUCT_MEMBER(int, cookie) |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 465 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
471 | 466 |
472 // Tell the browser to show the print preview, when the document is sufficiently | 467 // Tell the browser to show the print preview, when the document is sufficiently |
473 // loaded such that the renderer can determine whether it is modifiable or not. | 468 // loaded such that the renderer can determine whether it is modifiable or not. |
474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 469 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
475 bool /* is_modifiable */) | 470 bool /* is_modifiable */) |
476 | 471 |
477 // Notify the browser to set print presets based on source PDF document. | 472 // Notify the browser to set print presets based on source PDF document. |
478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 473 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 474 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
OLD | NEW |