Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3033)

Unified Diff: chrome/common/print_messages.h

Issue 7550022: Print Preview: Fixing behavior of event listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding function commetns Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/print_messages.h
diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h
index 618ece5b3ceffdf4cd6cec9996584dbb2da9378f..3bd814dea8b7aead1777d611753a508a5516ae32 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -50,6 +50,7 @@ IPC_STRUCT_BEGIN(PrintMsg_Print_Params)
IPC_STRUCT_MEMBER(bool, supports_alpha_blend)
IPC_STRUCT_MEMBER(int, preview_request_id)
+ IPC_STRUCT_MEMBER(bool, is_first_request)
Lei Zhang 2011/08/06 00:52:57 nit: can you comment these two struct members and
dpapad 2011/08/06 01:21:20 Done.
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
@@ -107,6 +108,9 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewPage_Params)
// |page_number| is zero-based and can be |printing::INVALID_PAGE_INDEX| if it
// is just a check.
IPC_STRUCT_MEMBER(int, page_number)
+
+ // The id of the preview request.
+ IPC_STRUCT_MEMBER(int, preview_request_id)
IPC_STRUCT_END()
// Parameters to describe a rendered page.
@@ -259,10 +263,11 @@ IPC_MESSAGE_CONTROL1(PrintHostMsg_TempFileForPrintingWritten,
IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview)
// Notify the browser the number of pages in the print preview document.
-IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetPreviewPageCount,
+IPC_MESSAGE_ROUTED4(PrintHostMsg_DidGetPreviewPageCount,
int /* document cookie */,
int /* page count */,
- bool /* is modifiable */)
+ bool /* is modifiable */,
+ int /* preview_request_id */)
// Notify the browser a print preview page has been rendered.
IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,

Powered by Google App Engine
This is Rietveld 408576698