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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 double dpi; | 35 double dpi; |
36 double min_shrink; | 36 double min_shrink; |
37 double max_shrink; | 37 double max_shrink; |
38 int desired_dpi; | 38 int desired_dpi; |
39 int document_cookie; | 39 int document_cookie; |
40 bool selection_only; | 40 bool selection_only; |
41 bool supports_alpha_blend; | 41 bool supports_alpha_blend; |
42 int32 preview_ui_id; | 42 int32 preview_ui_id; |
43 int preview_request_id; | 43 int preview_request_id; |
44 bool is_first_request; | 44 bool is_first_request; |
45 WebKit::WebPrintScalingOption print_scaling_option; | 45 blink::WebPrintScalingOption print_scaling_option; |
46 bool print_to_pdf; | 46 bool print_to_pdf; |
47 bool display_header_footer; | 47 bool display_header_footer; |
48 string16 title; | 48 string16 title; |
49 string16 url; | 49 string16 url; |
50 bool should_print_backgrounds; | 50 bool should_print_backgrounds; |
51 }; | 51 }; |
52 | 52 |
53 struct PrintMsg_PrintPages_Params { | 53 struct PrintMsg_PrintPages_Params { |
54 PrintMsg_PrintPages_Params(); | 54 PrintMsg_PrintPages_Params(); |
55 ~PrintMsg_PrintPages_Params(); | 55 ~PrintMsg_PrintPages_Params(); |
(...skipping 12 matching lines...) Expand all Loading... |
68 bool webnode_only; | 68 bool webnode_only; |
69 bool has_selection; | 69 bool has_selection; |
70 bool selection_only; | 70 bool selection_only; |
71 }; | 71 }; |
72 | 72 |
73 #endif // CHROME_COMMON_PRINT_MESSAGES_H_ | 73 #endif // CHROME_COMMON_PRINT_MESSAGES_H_ |
74 | 74 |
75 #define IPC_MESSAGE_START PrintMsgStart | 75 #define IPC_MESSAGE_START PrintMsgStart |
76 | 76 |
77 IPC_ENUM_TRAITS(printing::MarginType) | 77 IPC_ENUM_TRAITS(printing::MarginType) |
78 IPC_ENUM_TRAITS(WebKit::WebPrintScalingOption) | 78 IPC_ENUM_TRAITS(blink::WebPrintScalingOption) |
79 | 79 |
80 // Parameters for a render request. | 80 // Parameters for a render request. |
81 IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) | 81 IPC_STRUCT_TRAITS_BEGIN(PrintMsg_Print_Params) |
82 // Physical size of the page, including non-printable margins, | 82 // Physical size of the page, including non-printable margins, |
83 // in pixels according to dpi. | 83 // in pixels according to dpi. |
84 IPC_STRUCT_TRAITS_MEMBER(page_size) | 84 IPC_STRUCT_TRAITS_MEMBER(page_size) |
85 | 85 |
86 // In pixels according to dpi_x and dpi_y. | 86 // In pixels according to dpi_x and dpi_y. |
87 IPC_STRUCT_TRAITS_MEMBER(content_size) | 87 IPC_STRUCT_TRAITS_MEMBER(content_size) |
88 | 88 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 435 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
436 | 436 |
437 // Tell the browser to show the print preview, when the document is sufficiently | 437 // Tell the browser to show the print preview, when the document is sufficiently |
438 // loaded such that the renderer can determine whether it is modifiable or not. | 438 // loaded such that the renderer can determine whether it is modifiable or not. |
439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 439 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
440 bool /* is_modifiable */) | 440 bool /* is_modifiable */) |
441 | 441 |
442 // Notify the browser that the PDF in the initiator renderer has disabled print | 442 // Notify the browser that the PDF in the initiator renderer has disabled print |
443 // scaling option. | 443 // scaling option. |
444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 444 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |