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

Unified Diff: chrome/common/print_messages.h

Issue 10836330: Rasterize page before printing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 0efea966a0d8b5e7510d83bdb526e60d8c85b82e..5cf47fa2080956abfe379d4aef84788169f86211 100644
--- a/chrome/common/print_messages.h
+++ b/chrome/common/print_messages.h
@@ -24,6 +24,12 @@ struct PrintMsg_Print_Params {
PrintMsg_Print_Params();
~PrintMsg_Print_Params();
+ enum PrintRasterType {
+ RASTER_NONE,
+ RASTER_PLUGINS,
+ RASTER_ALL,
+ };
+
// Resets the members of the struct to 0.
void Reset();
@@ -48,6 +54,8 @@ struct PrintMsg_Print_Params {
string16 date;
string16 title;
string16 url;
+ PrintRasterType raster_type;
+ int raster_size;
};
struct PrintMsg_PrintPages_Params {
@@ -66,6 +74,7 @@ struct PrintMsg_PrintPages_Params {
#define IPC_MESSAGE_START PrintMsgStart
IPC_ENUM_TRAITS(printing::MarginType)
+IPC_ENUM_TRAITS(PrintMsg_Print_Params::PrintRasterType)
IPC_ENUM_TRAITS(WebKit::WebPrintScalingOption)
// Parameters for a render request.
@@ -135,6 +144,12 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
// URL string to be printed as footer if requested by the user.
IPC_STRUCT_TRAITS_MEMBER(url)
+
+ // Type of documents to be converted to raster for printing.
+ IPC_STRUCT_TRAITS_MEMBER(raster_type)
+
+ // Size of raster in pixels.
+ IPC_STRUCT_TRAITS_MEMBER(raster_size)
IPC_STRUCT_TRAITS_END()
IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)

Powered by Google App Engine
This is Rietveld 408576698