| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 246 |
| 247 // Size of the metafile data. | 247 // Size of the metafile data. |
| 248 IPC_STRUCT_MEMBER(uint32, data_size) | 248 IPC_STRUCT_MEMBER(uint32, data_size) |
| 249 | 249 |
| 250 // Cookie for the document to ensure correctness. | 250 // Cookie for the document to ensure correctness. |
| 251 IPC_STRUCT_MEMBER(int, document_cookie) | 251 IPC_STRUCT_MEMBER(int, document_cookie) |
| 252 | 252 |
| 253 // Page number. | 253 // Page number. |
| 254 IPC_STRUCT_MEMBER(int, page_number) | 254 IPC_STRUCT_MEMBER(int, page_number) |
| 255 | 255 |
| 256 #if defined(OS_WIN) && !defined(WIN_PDF_METAFILE_FOR_PRINTING) |
| 256 // Shrink factor used to render this page. | 257 // Shrink factor used to render this page. |
| 257 IPC_STRUCT_MEMBER(double, actual_shrink) | 258 IPC_STRUCT_MEMBER(double, actual_shrink) |
| 259 #endif // OS_WIN && !WIN_PDF_METAFILE_FOR_PRINTING |
| 258 | 260 |
| 259 // The size of the page the page author specified. | 261 // The size of the page the page author specified. |
| 260 IPC_STRUCT_MEMBER(gfx::Size, page_size) | 262 IPC_STRUCT_MEMBER(gfx::Size, page_size) |
| 261 | 263 |
| 262 // The printable area the page author specified. | 264 // The printable area the page author specified. |
| 263 IPC_STRUCT_MEMBER(gfx::Rect, content_area) | 265 IPC_STRUCT_MEMBER(gfx::Rect, content_area) |
| 264 IPC_STRUCT_END() | 266 IPC_STRUCT_END() |
| 265 | 267 |
| 266 // Parameters for the IPC message ViewHostMsg_ScriptedPrint | 268 // Parameters for the IPC message ViewHostMsg_ScriptedPrint |
| 267 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) | 269 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 438 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
| 437 | 439 |
| 438 // Tell the browser to show the print preview, when the document is sufficiently | 440 // Tell the browser to show the print preview, when the document is sufficiently |
| 439 // loaded such that the renderer can determine whether it is modifiable or not. | 441 // loaded such that the renderer can determine whether it is modifiable or not. |
| 440 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 442 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
| 441 bool /* is_modifiable */) | 443 bool /* is_modifiable */) |
| 442 | 444 |
| 443 // Notify the browser that the PDF in the initiator renderer has disabled print | 445 // Notify the browser that the PDF in the initiator renderer has disabled print |
| 444 // scaling option. | 446 // scaling option. |
| 445 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 447 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
| OLD | NEW |