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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Resets the members of the struct to 0. | 36 // Resets the members of the struct to 0. |
37 void Reset(); | 37 void Reset(); |
38 | 38 |
39 gfx::Size page_size; | 39 gfx::Size page_size; |
40 gfx::Size content_size; | 40 gfx::Size content_size; |
41 gfx::Rect printable_area; | 41 gfx::Rect printable_area; |
42 int margin_top; | 42 int margin_top; |
43 int margin_left; | 43 int margin_left; |
44 double dpi; | 44 double dpi; |
45 double min_shrink; | |
46 double max_shrink; | |
47 int desired_dpi; | 45 int desired_dpi; |
48 int document_cookie; | 46 int document_cookie; |
49 bool selection_only; | 47 bool selection_only; |
50 bool supports_alpha_blend; | 48 bool supports_alpha_blend; |
51 int32_t preview_ui_id; | 49 int32_t preview_ui_id; |
52 int preview_request_id; | 50 int preview_request_id; |
53 bool is_first_request; | 51 bool is_first_request; |
54 blink::WebPrintScalingOption print_scaling_option; | 52 blink::WebPrintScalingOption print_scaling_option; |
55 bool print_to_pdf; | 53 bool print_to_pdf; |
56 bool display_header_footer; | 54 bool display_header_footer; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 110 |
113 // The y-offset of the printable area, in pixels according to dpi. | 111 // The y-offset of the printable area, in pixels according to dpi. |
114 IPC_STRUCT_TRAITS_MEMBER(margin_top) | 112 IPC_STRUCT_TRAITS_MEMBER(margin_top) |
115 | 113 |
116 // The x-offset of the printable area, in pixels according to dpi. | 114 // The x-offset of the printable area, in pixels according to dpi. |
117 IPC_STRUCT_TRAITS_MEMBER(margin_left) | 115 IPC_STRUCT_TRAITS_MEMBER(margin_left) |
118 | 116 |
119 // Specifies dots per inch. | 117 // Specifies dots per inch. |
120 IPC_STRUCT_TRAITS_MEMBER(dpi) | 118 IPC_STRUCT_TRAITS_MEMBER(dpi) |
121 | 119 |
122 // Minimum shrink factor. See PrintSettings::min_shrink for more information. | |
123 IPC_STRUCT_TRAITS_MEMBER(min_shrink) | |
124 | |
125 // Maximum shrink factor. See PrintSettings::max_shrink for more information. | |
126 IPC_STRUCT_TRAITS_MEMBER(max_shrink) | |
127 | |
128 // Desired apparent dpi on paper. | 120 // Desired apparent dpi on paper. |
129 IPC_STRUCT_TRAITS_MEMBER(desired_dpi) | 121 IPC_STRUCT_TRAITS_MEMBER(desired_dpi) |
130 | 122 |
131 // Cookie for the document to ensure correctness. | 123 // Cookie for the document to ensure correctness. |
132 IPC_STRUCT_TRAITS_MEMBER(document_cookie) | 124 IPC_STRUCT_TRAITS_MEMBER(document_cookie) |
133 | 125 |
134 // Should only print currently selected text. | 126 // Should only print currently selected text. |
135 IPC_STRUCT_TRAITS_MEMBER(selection_only) | 127 IPC_STRUCT_TRAITS_MEMBER(selection_only) |
136 | 128 |
137 // Does the printer support alpha blending? | 129 // Does the printer support alpha blending? |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 471 |
480 // Tell the browser to show the print preview, when the document is sufficiently | 472 // Tell the browser to show the print preview, when the document is sufficiently |
481 // loaded such that the renderer can determine whether it is modifiable or not. | 473 // loaded such that the renderer can determine whether it is modifiable or not. |
482 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 474 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
483 bool /* is_modifiable */) | 475 bool /* is_modifiable */) |
484 | 476 |
485 // Notify the browser to set print presets based on source PDF document. | 477 // Notify the browser to set print presets based on source PDF document. |
486 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, | 478 IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument, |
487 PrintHostMsg_SetOptionsFromDocument_Params /* params */) | 479 PrintHostMsg_SetOptionsFromDocument_Params /* params */) |
488 #endif // defined(ENABLE_PRINT_PREVIEW) | 480 #endif // defined(ENABLE_PRINT_PREVIEW) |
OLD | NEW |