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

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: Indent Fix 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 0c8c48af7af27931e6c3484871a4c11451766863..f2e72eeaa334df7550d19407bfc1678888a512b5 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -48,6 +48,9 @@ IPC_STRUCT_BEGIN(PrintMsg_Print_Params)
// Does the printer support alpha blending?
IPC_STRUCT_MEMBER(bool, supports_alpha_blend)
+
+ // Specifies if the header and footer should be printed.
+ IPC_STRUCT_MEMBER(bool, header_footer)
kmadhusu 2011/07/14 01:50:15 display_header_footer?
Aayush Kumar 2011/07/19 01:20:30 Done.
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
@@ -158,9 +161,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