| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // IPC messages for printing. | 5 // IPC messages for printing. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Resets the members of the struct to 0. | 40 // Resets the members of the struct to 0. |
| 41 void Reset(); | 41 void Reset(); |
| 42 | 42 |
| 43 gfx::Size page_size; | 43 gfx::Size page_size; |
| 44 gfx::Size content_size; | 44 gfx::Size content_size; |
| 45 gfx::Rect printable_area; | 45 gfx::Rect printable_area; |
| 46 int margin_top; | 46 int margin_top; |
| 47 int margin_left; | 47 int margin_left; |
| 48 double dpi; | 48 double dpi; |
| 49 double scale_factor; | 49 double scale_factor; |
| 50 int desired_dpi; | |
| 51 bool rasterize_pdf; | 50 bool rasterize_pdf; |
| 52 int document_cookie; | 51 int document_cookie; |
| 53 bool selection_only; | 52 bool selection_only; |
| 54 bool supports_alpha_blend; | 53 bool supports_alpha_blend; |
| 55 int32_t preview_ui_id; | 54 int32_t preview_ui_id; |
| 56 int preview_request_id; | 55 int preview_request_id; |
| 57 bool is_first_request; | 56 bool is_first_request; |
| 58 blink::WebPrintScalingOption print_scaling_option; | 57 blink::WebPrintScalingOption print_scaling_option; |
| 59 bool print_to_pdf; | 58 bool print_to_pdf; |
| 60 bool display_header_footer; | 59 bool display_header_footer; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 119 |
| 121 // The x-offset of the printable area, in pixels according to dpi. | 120 // The x-offset of the printable area, in pixels according to dpi. |
| 122 IPC_STRUCT_TRAITS_MEMBER(margin_left) | 121 IPC_STRUCT_TRAITS_MEMBER(margin_left) |
| 123 | 122 |
| 124 // Specifies dots per inch. | 123 // Specifies dots per inch. |
| 125 IPC_STRUCT_TRAITS_MEMBER(dpi) | 124 IPC_STRUCT_TRAITS_MEMBER(dpi) |
| 126 | 125 |
| 127 // Specifies the scale factor in percent | 126 // Specifies the scale factor in percent |
| 128 IPC_STRUCT_TRAITS_MEMBER(scale_factor) | 127 IPC_STRUCT_TRAITS_MEMBER(scale_factor) |
| 129 | 128 |
| 130 // Desired apparent dpi on paper. | |
| 131 IPC_STRUCT_TRAITS_MEMBER(desired_dpi) | |
| 132 | |
| 133 // Cookie for the document to ensure correctness. | 129 // Cookie for the document to ensure correctness. |
| 134 IPC_STRUCT_TRAITS_MEMBER(document_cookie) | 130 IPC_STRUCT_TRAITS_MEMBER(document_cookie) |
| 135 | 131 |
| 136 // Should only print currently selected text. | 132 // Should only print currently selected text. |
| 137 IPC_STRUCT_TRAITS_MEMBER(selection_only) | 133 IPC_STRUCT_TRAITS_MEMBER(selection_only) |
| 138 | 134 |
| 139 // Does the printer support alpha blending? | 135 // Does the printer support alpha blending? |
| 140 IPC_STRUCT_TRAITS_MEMBER(supports_alpha_blend) | 136 IPC_STRUCT_TRAITS_MEMBER(supports_alpha_blend) |
| 141 | 137 |
| 142 // *** Parameters below are used only for print preview. *** | 138 // *** Parameters below are used only for print preview. *** |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 | 483 |
| 488 // Tell the browser to show the print preview, when the document is sufficiently | 484 // Tell the browser to show the print preview, when the document is sufficiently |
| 489 // loaded such that the renderer can determine whether it is modifiable or not. | 485 // loaded such that the renderer can determine whether it is modifiable or not. |
| 490 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 486 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
| 491 bool /* is_modifiable */) | 487 bool /* is_modifiable */) |
| 492 | 488 |
| 493 // Notify the browser to set print presets based on source PDF document. | 489 // Notify the browser to set print presets based on source PDF document. |
| 494 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 490 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
| 495 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 491 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
| 496 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 492 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| OLD | NEW |