Chromium Code Reviews| Index: chrome/common/print_messages.h |
| =================================================================== |
| --- chrome/common/print_messages.h (revision 92494) |
| +++ chrome/common/print_messages.h (working copy) |
| @@ -170,7 +170,15 @@ |
| // Tells a renderer to stop blocking script initiated printing. |
| IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount) |
| +// Tells a renderer to continue generating the print preview. |
| +IPC_MESSAGE_ROUTED0(PrintMsg_ContinuePreview) |
| +// Tells a renderer to cancel the print preview. |
| +IPC_MESSAGE_ROUTED0(PrintMsg_CancelPreview) |
| + |
| +// Tells a renderer to abort the print preview and reset all state. |
| +IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview) |
| + |
| // Messages sent from the renderer to the browser. |
| #if defined(OS_WIN) |
| @@ -240,13 +248,13 @@ |
| // Notify the browser a print preview page has been rendered. Give the browser |
| // a chance to cancel the print preview as needed. Page number is zero-based, |
| // and can be -1 if it is just a check. |
| -IPC_SYNC_MESSAGE_ROUTED1_1(PrintHostMsg_DidPreviewPage, |
| - int /* page number */, |
| - bool /* print preview cancelled */) |
| +IPC_MESSAGE_ROUTED2(PrintHostMsg_DidPreviewPage, |
| + int /* page number */, |
| + int /* document cookie */) |
|
kmadhusu
2011/07/15 01:22:46
(repeating our conversation): Send |document_cooki
Lei Zhang
2011/07/15 01:48:02
Done.
|
| -// Sends back to the browser the rendered "printed document" for preview that |
| -// was requested by a PrintMsg_PrintPreview message. The memory handle in this |
| -// message is already valid in the browser process. |
| +// Sends back to the browser the complete rendered document for print preview |
| +// that was requested by a PrintMsg_PrintPreview message. The memory handle in |
| +// this message is already valid in the browser process. |
| IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview, |
| PrintHostMsg_DidPreviewDocument_Params /* params */) |
| @@ -257,7 +265,3 @@ |
| // Tell the browser print preview failed. |
| IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed, |
| int /* document cookie */) |
| - |
| -// Tell the browser print preview was cancelled. |
| -IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewCancelled, |
| - int /* document cookie */) |