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 30 matching lines...) Expand all Loading... | |
41 IPC_STRUCT_MEMBER(int, desired_dpi) | 41 IPC_STRUCT_MEMBER(int, desired_dpi) |
42 | 42 |
43 // Cookie for the document to ensure correctness. | 43 // Cookie for the document to ensure correctness. |
44 IPC_STRUCT_MEMBER(int, document_cookie) | 44 IPC_STRUCT_MEMBER(int, document_cookie) |
45 | 45 |
46 // Should only print currently selected text. | 46 // Should only print currently selected text. |
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 | |
52 // Specifies if the header and footer should be printed. | |
53 IPC_STRUCT_MEMBER(bool, header_footer) | |
kmadhusu
2011/07/14 01:50:15
display_header_footer?
Aayush Kumar
2011/07/19 01:20:30
Done.
| |
51 IPC_STRUCT_END() | 54 IPC_STRUCT_END() |
52 | 55 |
53 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) | 56 IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params) |
54 // Parameters to render the page as a printed page. It must always be the same | 57 // Parameters to render the page as a printed page. It must always be the same |
55 // value for all the document. | 58 // value for all the document. |
56 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) | 59 IPC_STRUCT_MEMBER(PrintMsg_Print_Params, params) |
57 | 60 |
58 // The page number is the indicator of the square that should be rendered | 61 // The page number is the indicator of the square that should be rendered |
59 // according to the layout specified in PrintMsg_Print_Params. | 62 // according to the layout specified in PrintMsg_Print_Params. |
60 IPC_STRUCT_MEMBER(int, page_number) | 63 IPC_STRUCT_MEMBER(int, page_number) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 | 154 |
152 // Tells the render view that printing is done so it can clean up. | 155 // Tells the render view that printing is done so it can clean up. |
153 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, | 156 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, |
154 bool /* success */) | 157 bool /* success */) |
155 | 158 |
156 // Tells the render view that preview printing request has been cancelled. | 159 // Tells the render view that preview printing request has been cancelled. |
157 IPC_MESSAGE_ROUTED0(PrintMsg_PreviewPrintingRequestCancelled) | 160 IPC_MESSAGE_ROUTED0(PrintMsg_PreviewPrintingRequestCancelled) |
158 | 161 |
159 // Tells the render view to switch the CSS to print media type, renders every | 162 // Tells the render view to switch the CSS to print media type, renders every |
160 // requested pages for print preview using the given |settings|. This gets | 163 // requested pages for print preview using the given |settings|. This gets |
161 // called multiple times as the user updates settings. | 164 // called multiple times as the user updates settings. Header Footer info |
162 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, | 165 // contains the strings, accessible by the browser process, to be printed in |
163 DictionaryValue /* settings */) | 166 // the header and footer. |
167 IPC_MESSAGE_ROUTED2(PrintMsg_PrintPreview, | |
168 DictionaryValue /* settings */, | |
169 DictionaryValue /* header_footer_info */) | |
164 | 170 |
165 // Tells a renderer to stop blocking script initiated printing. | 171 // Tells a renderer to stop blocking script initiated printing. |
166 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) | 172 IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) |
167 | 173 |
168 | 174 |
169 // Messages sent from the renderer to the browser. | 175 // Messages sent from the renderer to the browser. |
170 | 176 |
171 #if defined(OS_WIN) | 177 #if defined(OS_WIN) |
172 // Duplicates a shared memory handle from the renderer to the browser. Then | 178 // Duplicates a shared memory handle from the renderer to the browser. Then |
173 // the renderer can flush the handle. | 179 // the renderer can flush the handle. |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, | 255 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, |
250 int /* document cookie */) | 256 int /* document cookie */) |
251 | 257 |
252 // Tell the browser print preview failed. | 258 // Tell the browser print preview failed. |
253 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, | 259 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
254 int /* document cookie */) | 260 int /* document cookie */) |
255 | 261 |
256 // Tell the browser print preview was cancelled. | 262 // Tell the browser print preview was cancelled. |
257 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, | 263 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, |
258 int /* document cookie */) | 264 int /* document cookie */) |
OLD | NEW |