| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 base::SharedMemoryHandle /* renderer handle */, | 175 base::SharedMemoryHandle /* renderer handle */, |
| 176 base::SharedMemoryHandle /* browser handle */) | 176 base::SharedMemoryHandle /* browser handle */) |
| 177 #endif | 177 #endif |
| 178 | 178 |
| 179 // Tells the browser that the renderer is done calculating the number of | 179 // Tells the browser that the renderer is done calculating the number of |
| 180 // rendered pages according to the specified settings. | 180 // rendered pages according to the specified settings. |
| 181 IPC_MESSAGE_ROUTED2(PrintHostMsg_DidGetPrintedPagesCount, | 181 IPC_MESSAGE_ROUTED2(PrintHostMsg_DidGetPrintedPagesCount, |
| 182 int /* rendered document cookie */, | 182 int /* rendered document cookie */, |
| 183 int /* number of rendered pages */) | 183 int /* number of rendered pages */) |
| 184 | 184 |
| 185 // Tells the browser that the print dialog has been shown. |
| 186 IPC_MESSAGE_ROUTED0(PrintHostMsg_DidShowPrintDialog) |
| 187 |
| 185 // Sends back to the browser the rendered "printed page" that was requested by | 188 // Sends back to the browser the rendered "printed page" that was requested by |
| 186 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in | 189 // a ViewMsg_PrintPage message or from scripted printing. The memory handle in |
| 187 // this message is already valid in the browser process. | 190 // this message is already valid in the browser process. |
| 188 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, | 191 IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPrintPage, |
| 189 PrintHostMsg_DidPrintPage_Params /* page content */) | 192 PrintHostMsg_DidPrintPage_Params /* page content */) |
| 190 | 193 |
| 191 // The renderer wants to know the default print settings. | 194 // The renderer wants to know the default print settings. |
| 192 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, | 195 IPC_SYNC_MESSAGE_ROUTED0_1(PrintHostMsg_GetDefaultPrintSettings, |
| 193 PrintMsg_Print_Params /* default_settings */) | 196 PrintMsg_Print_Params /* default_settings */) |
| 194 | 197 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, | 230 IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
| 228 PrintHostMsg_DidPreviewDocument_Params /* params */) | 231 PrintHostMsg_DidPreviewDocument_Params /* params */) |
| 229 | 232 |
| 230 // Tell the browser printing failed. | 233 // Tell the browser printing failed. |
| 231 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, | 234 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, |
| 232 int /* document cookie */) | 235 int /* document cookie */) |
| 233 | 236 |
| 234 // Tell the browser print preview failed. | 237 // Tell the browser print preview failed. |
| 235 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, | 238 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
| 236 int /* document cookie */) | 239 int /* document cookie */) |
| OLD | NEW |