OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 // Messages sent from the browser to the renderer. | 261 // Messages sent from the browser to the renderer. |
262 | 262 |
263 // Tells the render view to initiate print preview for the entire document. | 263 // Tells the render view to initiate print preview for the entire document. |
264 IPC_MESSAGE_ROUTED0(PrintMsg_InitiatePrintPreview) | 264 IPC_MESSAGE_ROUTED0(PrintMsg_InitiatePrintPreview) |
265 | 265 |
266 // Tells the render view to initiate printing or print preview for a particular | 266 // Tells the render view to initiate printing or print preview for a particular |
267 // node, depending on which mode the render view is in. | 267 // node, depending on which mode the render view is in. |
268 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) | 268 IPC_MESSAGE_ROUTED0(PrintMsg_PrintNodeUnderContextMenu) |
269 | 269 |
| 270 // Tells the render view to initiate printing to a metafile. |
| 271 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForFile) |
| 272 |
270 // Tells the renderer to print the print preview tab's PDF plugin without | 273 // Tells the renderer to print the print preview tab's PDF plugin without |
271 // showing the print dialog. (This is the final step in the print preview | 274 // showing the print dialog. (This is the final step in the print preview |
272 // workflow.) | 275 // workflow.) |
273 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, | 276 IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview, |
274 DictionaryValue /* settings */) | 277 DictionaryValue /* settings */) |
275 | 278 |
276 // Tells the render view to switch the CSS to print media type, renders every | 279 // Tells the render view to switch the CSS to print media type, renders every |
277 // requested pages and switch back the CSS to display media type. | 280 // requested pages and switch back the CSS to display media type. |
278 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) | 281 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) |
279 | 282 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 int /* document cookie */) | 418 int /* document cookie */) |
416 | 419 |
417 // Run a nested message loop in the renderer until print preview for | 420 // Run a nested message loop in the renderer until print preview for |
418 // window.print() finishes. | 421 // window.print() finishes. |
419 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, | 422 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, |
420 bool /* is_modifiable */) | 423 bool /* is_modifiable */) |
421 | 424 |
422 // Notify the browser that the PDF in the initiator renderer has disabled print | 425 // Notify the browser that the PDF in the initiator renderer has disabled print |
423 // scaling option. | 426 // scaling option. |
424 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 427 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |