| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/values.h" | 8 #include "base/values.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 IPC_STRUCT_MEMBER(bool, selection_only) | 47 IPC_STRUCT_MEMBER(bool, selection_only) |
| 48 | 48 |
| 49 // Does the printer support alpha blending? | 49 // Does the printer support alpha blending? |
| 50 IPC_STRUCT_MEMBER(bool, supports_alpha_blend) | 50 IPC_STRUCT_MEMBER(bool, supports_alpha_blend) |
| 51 | 51 |
| 52 // The id of the preview request, used only for print preview. | 52 // The id of the preview request, used only for print preview. |
| 53 IPC_STRUCT_MEMBER(int, preview_request_id) | 53 IPC_STRUCT_MEMBER(int, preview_request_id) |
| 54 | 54 |
| 55 // True if this is the first preview request, used only for print preview. | 55 // True if this is the first preview request, used only for print preview. |
| 56 IPC_STRUCT_MEMBER(bool, is_first_request) | 56 IPC_STRUCT_MEMBER(bool, is_first_request) |
| 57 |
| 58 // Specifies if the header and footer should be rendered. |
| 59 IPC_STRUCT_MEMBER(bool, display_header_footer) |
| 60 |
| 61 // Date string to be printed as header if requested by the user. |
| 62 IPC_STRUCT_MEMBER(string16, date) |
| 63 |
| 64 // Title string to be printed as header if requested by the user. |
| 65 IPC_STRUCT_MEMBER(string16, title) |
| 66 |
| 67 // URL string to be printed as footer if requested by the user. |
| 68 IPC_STRUCT_MEMBER(string16, url) |
| 57 IPC_STRUCT_END() | 69 IPC_STRUCT_END() |
| 58 | 70 |
| 59 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) | 71 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) |
| 60 // Parameters to render the page as a printed page. It must always be the same | 72 // Parameters to render the page as a printed page. It must always be the same |
| 61 // value for all the document. | 73 // value for all the document. |
| 62 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | 74 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) |
| 63 | 75 |
| 64 // The page number is the indicator of the square that should be rendered | 76 // The page number is the indicator of the square that should be rendered |
| 65 // according to the layout specified in PrintMsg_Print_Params. | 77 // according to the layout specified in PrintMsg_Print_Params. |
| 66 IPC_STRUCT_MEMBER(int, page_number) | 78 IPC_STRUCT_MEMBER(int, page_number) |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, | 306 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
| 295 PrintHostMsg_DidPreviewDocument_Params /* params */) | 307 PrintHostMsg_DidPreviewDocument_Params /* params */) |
| 296 | 308 |
| 297 // Tell the browser printing failed. | 309 // Tell the browser printing failed. |
| 298 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, | 310 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, |
| 299 int /* document cookie */) | 311 int /* document cookie */) |
| 300 | 312 |
| 301 // Tell the browser print preview failed. | 313 // Tell the browser print preview failed. |
| 302 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, | 314 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
| 303 int /* document cookie */) | 315 int /* document cookie */) |
| OLD | NEW |