OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 | 8 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276 |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 29 matching lines...) Expand all Loading... |
40 int desired_dpi; | 40 int desired_dpi; |
41 int document_cookie; | 41 int document_cookie; |
42 bool selection_only; | 42 bool selection_only; |
43 bool supports_alpha_blend; | 43 bool supports_alpha_blend; |
44 int32 preview_ui_id; | 44 int32 preview_ui_id; |
45 int preview_request_id; | 45 int preview_request_id; |
46 bool is_first_request; | 46 bool is_first_request; |
47 blink::WebPrintScalingOption print_scaling_option; | 47 blink::WebPrintScalingOption print_scaling_option; |
48 bool print_to_pdf; | 48 bool print_to_pdf; |
49 bool display_header_footer; | 49 bool display_header_footer; |
50 string16 title; | 50 base::string16 title; |
51 string16 url; | 51 base::string16 url; |
52 bool should_print_backgrounds; | 52 bool should_print_backgrounds; |
53 }; | 53 }; |
54 | 54 |
55 struct PrintMsg_PrintPages_Params { | 55 struct PrintMsg_PrintPages_Params { |
56 PrintMsg_PrintPages_Params(); | 56 PrintMsg_PrintPages_Params(); |
57 ~PrintMsg_PrintPages_Params(); | 57 ~PrintMsg_PrintPages_Params(); |
58 | 58 |
59 // Resets the members of the struct to 0. | 59 // Resets the members of the struct to 0. |
60 void Reset(); | 60 void Reset(); |
61 | 61 |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) | 434 IPC_SYNC_MESSAGE_ROUTED0_0(PrintHostMsg_SetupScriptedPrintPreview) |
435 | 435 |
436 // Tell the browser to show the print preview, when the document is sufficiently | 436 // Tell the browser to show the print preview, when the document is sufficiently |
437 // loaded such that the renderer can determine whether it is modifiable or not. | 437 // loaded such that the renderer can determine whether it is modifiable or not. |
438 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, | 438 IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview, |
439 bool /* is_modifiable */) | 439 bool /* is_modifiable */) |
440 | 440 |
441 // Notify the browser that the PDF in the initiator renderer has disabled print | 441 // Notify the browser that the PDF in the initiator renderer has disabled print |
442 // scaling option. | 442 // scaling option. |
443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) | 443 IPC_MESSAGE_ROUTED0(PrintHostMsg_PrintPreviewScalingDisabled) |
OLD | NEW |