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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 IPC_STRUCT_END() | 53 IPC_STRUCT_END() |
54 | 54 |
55 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) | 55 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) |
56 // Parameters to render the page as a printed page. It must always be the same | 56 // Parameters to render the page as a printed page. It must always be the same |
57 // value for all the document. | 57 // value for all the document. |
58 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | 58 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) |
59 | 59 |
60 // The page number is the indicator of the square that should be rendered | 60 // The page number is the indicator of the square that should be rendered |
61 // according to the layout specified in PrintMsg_Print_Params. | 61 // according to the layout specified in PrintMsg_Print_Params. |
62 IPC_STRUCT_MEMBER(int, page_number) | 62 IPC_STRUCT_MEMBER(int, page_number) |
63 | |
64 // The page number in the resulting document. If the user is only printing | |
65 // page 2, |page_number| above will 1, but |page_slot| will be 0, as it's the | |
66 // first page in the final document. | |
67 IPC_STRUCT_MEMBER(int, page_slot) | |
68 IPC_STRUCT_END() | 63 IPC_STRUCT_END() |
69 | 64 |
70 IPC_STRUCT_BEGIN(PrintMsg_PrintPages_Params) | 65 IPC_STRUCT_BEGIN(PrintMsg_PrintPages_Params) |
71 // Parameters to render the page as a printed page. It must always be the same | 66 // Parameters to render the page as a printed page. It must always be the same |
72 // value for all the document. | 67 // value for all the document. |
73 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | 68 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) |
74 | 69 |
75 // If empty, this means a request to render all the printed pages. | 70 // If empty, this means a request to render all the printed pages. |
76 IPC_STRUCT_MEMBER(std::vector<int>, pages) | 71 IPC_STRUCT_MEMBER(std::vector<int>, pages) |
77 IPC_STRUCT_END() | 72 IPC_STRUCT_END() |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, | 274 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
280 PrintHostMsg_DidPreviewDocument_Params /* params */) | 275 PrintHostMsg_DidPreviewDocument_Params /* params */) |
281 | 276 |
282 // Tell the browser printing failed. | 277 // Tell the browser printing failed. |
283 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, | 278 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, |
284 int /* document cookie */) | 279 int /* document cookie */) |
285 | 280 |
286 // Tell the browser print preview failed. | 281 // Tell the browser print preview failed. |
287 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, | 282 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
288 int /* document cookie */) | 283 int /* document cookie */) |
OLD | NEW |