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

Unified Diff: chrome/common/print_messages.h

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed style issues. Added check to see if there is enough space to print headers and footers. Created 9 years, 5 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 139b99b42234a5db149858518975c1bcea06ccb3..455de600ea04d49db1224856e33098b0164f1359 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -50,6 +50,9 @@ IPC_STRUCT_BEGIN(PrintMsg_Print_Params)
IPC_STRUCT_MEMBER(bool, supports_alpha_blend)
IPC_STRUCT_MEMBER(int, preview_request_id)
+
+ // Specifies if the header and footer should be printed.
+ IPC_STRUCT_MEMBER(bool, display_header_footer)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
@@ -163,9 +166,12 @@ IPC_MESSAGE_ROUTED0(PrintMsg_PreviewPrintingRequestCancelled)
// Tells the render view to switch the CSS to print media type, renders every
// requested pages for print preview using the given |settings|. This gets
-// called multiple times as the user updates settings.
-IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
- DictionaryValue /* settings */)
+// called multiple times as the user updates settings. Header Footer info
+// contains the strings, accessible by the browser process, to be printed in
+// the header and footer.
+IPC_MESSAGE_ROUTED2(PrintMsg_PrintPreview,
+ DictionaryValue /* settings */,
+ DictionaryValue /* header_footer_info */)
// Tells a renderer to stop blocking script initiated printing.
IPC_MESSAGE_ROUTED0(PrintMsg_ResetScriptedPrintCount)

Powered by Google App Engine
This is Rietveld 408576698