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) | |
69 IPC_STRUCT_END() | 57 IPC_STRUCT_END() |
70 | 58 |
71 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) | 59 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) |
72 // Parameters to render the page as a printed page. It must always be the same | 60 // Parameters to render the page as a printed page. It must always be the same |
73 // value for all the document. | 61 // value for all the document. |
74 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | 62 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) |
75 | 63 |
76 // The page number is the indicator of the square that should be rendered | 64 // The page number is the indicator of the square that should be rendered |
77 // according to the layout specified in PrintMsg_Print_Params. | 65 // according to the layout specified in PrintMsg_Print_Params. |
78 IPC_STRUCT_MEMBER(int, page_number) | 66 IPC_STRUCT_MEMBER(int, page_number) |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, | 294 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
307 PrintHostMsg_DidPreviewDocument_Params /* params */) | 295 PrintHostMsg_DidPreviewDocument_Params /* params */) |
308 | 296 |
309 // Tell the browser printing failed. | 297 // Tell the browser printing failed. |
310 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, | 298 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, |
311 int /* document cookie */) | 299 int /* document cookie */) |
312 | 300 |
313 // Tell the browser print preview failed. | 301 // Tell the browser print preview failed. |
314 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, | 302 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
315 int /* document cookie */) | 303 int /* document cookie */) |
OLD | NEW |