| Index: components/printing/common/print_messages.h
|
| diff --git a/components/printing/common/print_messages.h b/components/printing/common/print_messages.h
|
| index 9a90bc11073848958d9128c80dc76bedc54e796a..9765a53aa0f193d49f0aa3295b9600e8e2cd08c8 100644
|
| --- a/components/printing/common/print_messages.h
|
| +++ b/components/printing/common/print_messages.h
|
| @@ -61,6 +61,7 @@ struct PrintMsg_Print_Params {
|
| base::string16 title;
|
| base::string16 url;
|
| bool should_print_backgrounds;
|
| + bool is_subframe;
|
| };
|
|
|
| struct PrintMsg_PrintPages_Params {
|
| @@ -170,6 +171,9 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
|
|
|
| // True if print backgrounds is requested by the user.
|
| IPC_STRUCT_TRAITS_MEMBER(should_print_backgrounds)
|
| +
|
| + // True if this is for printing a subframe for composition.
|
| + IPC_STRUCT_TRAITS_MEMBER(is_subframe)
|
| IPC_STRUCT_TRAITS_END()
|
|
|
| IPC_STRUCT_BEGIN(PrintMsg_PrintPage_Params)
|
| @@ -248,6 +252,9 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewDocument_Params)
|
|
|
| // The id of the preview request.
|
| IPC_STRUCT_MEMBER(int, preview_request_id)
|
| +
|
| + // Whether this is for a subframe
|
| + IPC_STRUCT_MEMBER(bool, is_subframe)
|
| IPC_STRUCT_END()
|
|
|
| // Parameters to describe a rendered preview page.
|
| @@ -263,6 +270,9 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewPage_Params)
|
|
|
| // The id of the preview request.
|
| IPC_STRUCT_MEMBER(int, preview_request_id)
|
| +
|
| + // Whether this is for a subframe
|
| + IPC_STRUCT_MEMBER(bool, is_subframe)
|
| IPC_STRUCT_END()
|
|
|
| // Parameters sent along with the page count.
|
| @@ -311,6 +321,8 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintPage_Params)
|
| // The physical offsets of the printer in DPI. Used for PS printing.
|
| IPC_STRUCT_MEMBER(gfx::Point, physical_offsets)
|
|
|
| + // Whether this is for a subframe.
|
| + IPC_STRUCT_MEMBER(bool, is_subframe)
|
| IPC_STRUCT_END()
|
|
|
| // TODO(dgn) Rename *ScriptedPrint messages because they are not called only
|
| @@ -350,6 +362,9 @@ IPC_MESSAGE_ROUTED1(PrintMsg_PrintForPrintPreview,
|
| // requested pages and switch back the CSS to display media type.
|
| IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages)
|
|
|
| +// Similar as PrintMsg_PrintPages except use preset setttings passed in.
|
| +IPC_MESSAGE_ROUTED1(PrintMsg_PrintPagesWithSettings, gfx::Rect /* size */)
|
| +
|
| // Like PrintMsg_PrintPages, but using the print preview document's frame/node.
|
| IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog)
|
| #endif
|
| @@ -493,4 +508,5 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
|
| // Notify the browser to set print presets based on source PDF document.
|
| IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
|
| PrintHostMsg_SetOptionsFromDocument_Params /* params */)
|
| +
|
| #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
|
|