| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // Page number. | 287 // Page number. |
| 288 IPC_STRUCT_MEMBER(int, page_number) | 288 IPC_STRUCT_MEMBER(int, page_number) |
| 289 | 289 |
| 290 // The size of the page the page author specified. | 290 // The size of the page the page author specified. |
| 291 IPC_STRUCT_MEMBER(gfx::Size, page_size) | 291 IPC_STRUCT_MEMBER(gfx::Size, page_size) |
| 292 | 292 |
| 293 // The printable area the page author specified. | 293 // The printable area the page author specified. |
| 294 IPC_STRUCT_MEMBER(gfx::Rect, content_area) | 294 IPC_STRUCT_MEMBER(gfx::Rect, content_area) |
| 295 IPC_STRUCT_END() | 295 IPC_STRUCT_END() |
| 296 | 296 |
| 297 // TODO(dgn) Rename *ScriptedPrint messages because they are not called only |
| 298 // from scripts. |
| 297 // Parameters for the IPC message ViewHostMsg_ScriptedPrint | 299 // Parameters for the IPC message ViewHostMsg_ScriptedPrint |
| 298 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) | 300 IPC_STRUCT_BEGIN(PrintHostMsg_ScriptedPrint_Params) |
| 299 IPC_STRUCT_MEMBER(int, cookie) | 301 IPC_STRUCT_MEMBER(int, cookie) |
| 300 IPC_STRUCT_MEMBER(int, expected_pages_count) | 302 IPC_STRUCT_MEMBER(int, expected_pages_count) |
| 301 IPC_STRUCT_MEMBER(bool, has_selection) | 303 IPC_STRUCT_MEMBER(bool, has_selection) |
| 304 IPC_STRUCT_MEMBER(bool, is_scripted) |
| 302 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) | 305 IPC_STRUCT_MEMBER(printing::MarginType, margin_type) |
| 303 IPC_STRUCT_END() | 306 IPC_STRUCT_END() |
| 304 | 307 |
| 305 | 308 |
| 306 // Messages sent from the browser to the renderer. | 309 // Messages sent from the browser to the renderer. |
| 307 | 310 |
| 308 // Tells the render view to initiate print preview for the entire document. | 311 // Tells the render view to initiate print preview for the entire document. |
| 309 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) | 312 IPC_MESSAGE_ROUTED1(PrintMsg_InitiatePrintPreview, bool /* selection_only */) |
| 310 | 313 |
| 311 // Tells the render frame to initiate printing or print preview for a particular | 314 // Tells the render frame to initiate printing or print preview for a particular |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 470 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
| 468 | 471 |
| 469 // Tell the browser to show the print preview, when the document is sufficiently | 472 // Tell the browser to show the print preview, when the document is sufficiently |
| 470 // loaded such that the renderer can determine whether it is modifiable or not. | 473 // loaded such that the renderer can determine whether it is modifiable or not. |
| 471 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
| 472 bool /* is_modifiable */) | 475 bool /* is_modifiable */) |
| 473 | 476 |
| 474 // Notify the browser to set print presets based on source PDF document. | 477 // Notify the browser to set print presets based on source PDF document. |
| 475 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
| 476 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
| OLD | NEW |