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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 // Messages sent from the renderer to the browser. | 153 // Messages sent from the renderer to the browser. |
154 | 154 |
155 #if defined(OS_WIN) | 155 #if defined(OS_WIN) |
156 // Duplicates a shared memory handle from the renderer to the browser. Then | 156 // Duplicates a shared memory handle from the renderer to the browser. Then |
157 // the renderer can flush the handle. | 157 // the renderer can flush the handle. |
158 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, | 158 IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DuplicateSection, |
159 base::SharedMemoryHandle /* renderer handle */, | 159 base::SharedMemoryHandle /* renderer handle */, |
160 base::SharedMemoryHandle /* browser handle */) | 160 base::SharedMemoryHandle /* browser handle */) |
161 #endif | 161 #endif |
162 | 162 |
163 // Tells the browser that the renderer is done calculating the number of | 163 // Tells the browser that the renderer is done identifying the basic print job |
164 // rendered pages according to the specified settings. | 164 // information such as job title and total number of rendered pages according |
165 IPC_MESSAGE_ROUTED2(PrintHostMsg_DidGetPrintedPagesCount, | 165 // to the specified settings. |
| 166 IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetBasicPrintJobInfo, |
166 int /* rendered document cookie */, | 167 int /* rendered document cookie */, |
167 int /* number of rendered pages */) | 168 int /* number of rendered pages */, |
| 169 string16 /* job_title */) |
168 | 170 |
169 // Sends back to the browser the rendered "printed page" that was requested by | 171 // Sends back to the browser the rendered "printed page" that was requested by |
170 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in | 172 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in |
171 // this message is already valid in the browser process. | 173 // this message is already valid in the browser process. |
172 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, | 174 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, |
173 PrintHostMsg_DidPrintPage_Params /* page content */) | 175 PrintHostMsg_DidPrintPage_Params /* page content */) |
174 | 176 |
175 // The renderer wants to know the default print settings. | 177 // The renderer wants to know the default print settings. |
176 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, | 178 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, |
177 PrintMsg_Print_Params /* default_settings */) | 179 PrintMsg_Print_Params /* default_settings */) |
(...skipping 28 matching lines...) Expand all Loading... |
206 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewNodeUnderContextMenu) | 208 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewNodeUnderContextMenu) |
207 | 209 |
208 // Asks the browser to do print preview for window.print(). | 210 // Asks the browser to do print preview for window.print(). |
209 IPC_MESSAGE_ROUTED0(PrintHostMsg_ScriptInitiatedPrintPreview) | 211 IPC_MESSAGE_ROUTED0(PrintHostMsg_ScriptInitiatedPrintPreview) |
210 | 212 |
211 // Sends back to the browser the rendered "printed document" for preview that | 213 // Sends back to the browser the rendered "printed document" for preview that |
212 // was requested by a PrintMsg_PrintPreview message. The memory handle in this | 214 // was requested by a PrintMsg_PrintPreview message. The memory handle in this |
213 // message is already valid in the browser process. | 215 // message is already valid in the browser process. |
214 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, | 216 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
215 PrintHostMsg_DidPreviewDocument_Params /* params */) | 217 PrintHostMsg_DidPreviewDocument_Params /* params */) |
OLD | NEW |