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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 IPC_STRUCT_END() | 297 IPC_STRUCT_END() |
298 | 298 |
299 // TODO(dgn) Rename *ScriptedPrint messages because they are not called only | 299 // TODO(dgn) Rename *ScriptedPrint messages because they are not called only |
300 // from scripts. | 300 // from scripts. |
301 // Parameters for the IPC message ViewHostMsg_ScriptedPrint | 301 // Parameters for the IPC message ViewHostMsg_ScriptedPrint |
302 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) | 302 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) |
303 IPC_STRUCT_MEMBER(int, cookie) | 303 IPC_STRUCT_MEMBER(int, cookie) |
304 IPC_STRUCT_MEMBER(int, expected_pages_count) | 304 IPC_STRUCT_MEMBER(int, expected_pages_count) |
305 IPC_STRUCT_MEMBER(bool, has_selection) | 305 IPC_STRUCT_MEMBER(bool, has_selection) |
306 IPC_STRUCT_MEMBER(bool, is_scripted) | 306 IPC_STRUCT_MEMBER(bool, is_scripted) |
| 307 IPC_STRUCT_MEMBER(bool, is_modifiable) |
307 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) | 308 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) |
308 IPC_STRUCT_END() | 309 IPC_STRUCT_END() |
309 | 310 |
310 | 311 |
311 // Messages sent from the browser to the renderer. | 312 // Messages sent from the browser to the renderer. |
312 | 313 |
313 #if defined(ENABLE_PRINT_PREVIEW) | 314 #if defined(ENABLE_PRINT_PREVIEW) |
314 // Tells the render view to initiate print preview for the entire document. | 315 // Tells the render view to initiate print preview for the entire document. |
315 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) | 316 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) |
316 #endif // defined(ENABLE_PRINT_PREVIEW) | 317 #endif // defined(ENABLE_PRINT_PREVIEW) |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 | 475 |
475 // Tell the browser to show the print preview, when the document is sufficiently | 476 // Tell the browser to show the print preview, when the document is sufficiently |
476 // loaded such that the renderer can determine whether it is modifiable or not. | 477 // loaded such that the renderer can determine whether it is modifiable or not. |
477 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 478 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
478 bool /* is_modifiable */) | 479 bool /* is_modifiable */) |
479 | 480 |
480 // Notify the browser to set print presets based on source PDF document. | 481 // Notify the browser to set print presets based on source PDF document. |
481 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 482 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
482 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 483 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
483 #endif // defined(ENABLE_PRINT_PREVIEW) | 484 #endif // defined(ENABLE_PRINT_PREVIEW) |
OLD | NEW |