| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 // Tell the browser print preview was cancelled. | 454 // Tell the browser print preview was cancelled. |
| 455 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, | 455 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, |
| 456 int /* document cookie */) | 456 int /* document cookie */) |
| 457 | 457 |
| 458 // Tell the browser print preview found the selected printer has invalid | 458 // Tell the browser print preview found the selected printer has invalid |
| 459 // settings (which typically caused by disconnected network printer or printer | 459 // settings (which typically caused by disconnected network printer or printer |
| 460 // driver is bogus). | 460 // driver is bogus). |
| 461 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, | 461 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, |
| 462 int /* document cookie */) | 462 int /* document cookie */) |
| 463 | 463 |
| 464 // Run a nested message loop in the renderer until print preview for | 464 // Run a nested run loop in the renderer until print preview for |
| 465 // window.print() finishes. | 465 // window.print() finishes. |
| 466 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 466 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
| 467 | 467 |
| 468 // Tell the browser to show the print preview, when the document is sufficiently | 468 // Tell the browser to show the print preview, when the document is sufficiently |
| 469 // loaded such that the renderer can determine whether it is modifiable or not. | 469 // loaded such that the renderer can determine whether it is modifiable or not. |
| 470 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 470 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
| 471 bool /* is_modifiable */) | 471 bool /* is_modifiable */) |
| 472 | 472 |
| 473 // Notify the browser to set print presets based on source PDF document. | 473 // Notify the browser to set print presets based on source PDF document. |
| 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
| 475 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 475 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
| 476 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 476 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| OLD | NEW |