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

Unified Diff: chrome/common/print_messages.h

Issue 7639023: Revert 96567 - Reland 96406 - Print preview page selection should not require a rerendering of dr... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/renderer/mock_printer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/print_messages.h
===================================================================
--- chrome/common/print_messages.h (revision 96579)
+++ chrome/common/print_messages.h (working copy)
@@ -187,7 +187,11 @@
IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount)
// Tells a renderer to continue generating the print preview.
-IPC_MESSAGE_ROUTED0(PrintMsg_ContinuePreview)
+// Use |requested_preview_page_index| to request a specific preview page data.
+// |requested_preview_page_index| is 1-based or |printing::INVALID_PAGE_INDEX|
+// to render the next page.
+IPC_MESSAGE_ROUTED1(PrintMsg_ContinuePreview,
+ int /* requested_preview_page_index */)
// Tells a renderer to abort the print preview and reset all state.
IPC_MESSAGE_ROUTED0(PrintMsg_AbortPreview)
@@ -255,11 +259,10 @@
IPC_MESSAGE_ROUTED0(PrintHostMsg_RequestPrintPreview)
// Notify the browser the number of pages in the print preview document.
-IPC_MESSAGE_ROUTED4(PrintHostMsg_DidGetPreviewPageCount,
+IPC_MESSAGE_ROUTED3(PrintHostMsg_DidGetPreviewPageCount,
int /* document cookie */,
int /* page count */,
- bool /* is modifiable */,
- bool /* clear all preview data */)
+ bool /* is modifiable */)
// Notify the browser a print preview page has been rendered.
IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
@@ -268,7 +271,7 @@
// 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_MetafileReadyForPrinting,
+IPC_MESSAGE_ROUTED1(PrintHostMsg_PagesReadyForPreview,
PrintHostMsg_DidPreviewDocument_Params /* params */)
// Tell the browser printing failed.
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview.js ('k') | chrome/renderer/mock_printer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698