diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-07 01:06:40 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-07 01:06:40 +0000 |
commit | 961dc8cd0c5860fe944da2926c1ed1cb69326b66 (patch) | |
tree | 603ec58775f9e07a9ee11f69be017cf13e2e584d /chrome/common/print_messages.h | |
parent | 0545daf4b7c757c073f9d07f51544ea80e2ef876 (diff) | |
download | chromium_src-961dc8cd0c5860fe944da2926c1ed1cb69326b66.zip chromium_src-961dc8cd0c5860fe944da2926c1ed1cb69326b66.tar.gz chromium_src-961dc8cd0c5860fe944da2926c1ed1cb69326b66.tar.bz2 |
Print Preview: Add the ability to cancel an in-flight print preview.
BUG=85103
TEST=none
Review URL: http://codereview.chromium.org/7104127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91645 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/print_messages.h')
-rw-r--r-- | chrome/common/print_messages.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h index ec825a5..0c8c48a 100644 --- a/chrome/common/print_messages.h +++ b/chrome/common/print_messages.h @@ -228,6 +228,17 @@ IPC_MESSAGE_CONTROL1(PrintHostMsg_TempFileForPrintingWritten, // Asks the browser to do print preview. IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview) +// Notify the browser the number of pages in the print preview document. +IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount, + int /* page count */) + +// 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 */) + // 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. @@ -241,3 +252,7 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed, // 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 */) |