| Index: chrome/common/print_messages.h
|
| diff --git a/chrome/common/print_messages.h b/chrome/common/print_messages.h
|
| index e4a4e9f9eb5418d16f8055553c23b3c51ce06e79..0b57c97a1adf48d9befb55a00c2add5d8ad09cd0 100644
|
| --- a/chrome/common/print_messages.h
|
| +++ b/chrome/common/print_messages.h
|
| @@ -40,6 +40,7 @@ struct PrintMsg_Print_Params {
|
| std::string preview_ui_addr;
|
| int preview_request_id;
|
| bool is_first_request;
|
| + bool print_to_pdf;
|
| bool display_header_footer;
|
| string16 date;
|
| string16 title;
|
| @@ -110,6 +111,9 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params)
|
| // True if this is the first preview request.
|
| IPC_STRUCT_TRAITS_MEMBER(is_first_request)
|
|
|
| + // True if print to pdf is requested.
|
| + IPC_STRUCT_TRAITS_MEMBER(print_to_pdf)
|
| +
|
| // Specifies if the header and footer should be rendered.
|
| IPC_STRUCT_TRAITS_MEMBER(display_header_footer)
|
|
|
| @@ -351,8 +355,11 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetPreviewPageCount,
|
|
|
| // Notify the browser of the default page layout according to the currently
|
| // selected printer and page size.
|
| -IPC_MESSAGE_ROUTED1(PrintHostMsg_DidGetDefaultPageLayout,
|
| - printing::PageSizeMargins /* page layout in points */)
|
| +// |has_custom_page_size_style| is true when the printing frame has a custom
|
| +// page size css otherwise false.
|
| +IPC_MESSAGE_ROUTED2(PrintHostMsg_DidGetDefaultPageLayout,
|
| + printing::PageSizeMargins /* page layout in points */,
|
| + bool /* has custom page size style */)
|
|
|
| // Notify the browser a print preview page has been rendered.
|
| IPC_MESSAGE_ROUTED1(PrintHostMsg_DidPreviewPage,
|
|
|