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 #include "base/strings/string16.h" | 5 #include "base/strings/string16.h" |
6 #include "printing/features/features.h" | 6 #include "printing/features/features.h" |
7 #include "ui/gfx/geometry/size.h" | 7 #include "ui/gfx/geometry/size.h" |
8 | 8 |
9 #define IPC_MESSAGE_IMPL | 9 #define IPC_MESSAGE_IMPL |
10 #include "components/printing/common/print_messages.h" | 10 #include "components/printing/common/print_messages.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 selection_only(false), | 54 selection_only(false), |
55 supports_alpha_blend(false), | 55 supports_alpha_blend(false), |
56 preview_ui_id(-1), | 56 preview_ui_id(-1), |
57 preview_request_id(0), | 57 preview_request_id(0), |
58 is_first_request(false), | 58 is_first_request(false), |
59 print_scaling_option(blink::kWebPrintScalingOptionSourceSize), | 59 print_scaling_option(blink::kWebPrintScalingOptionSourceSize), |
60 print_to_pdf(false), | 60 print_to_pdf(false), |
61 display_header_footer(false), | 61 display_header_footer(false), |
62 title(), | 62 title(), |
63 url(), | 63 url(), |
64 should_print_backgrounds(false) {} | 64 should_print_backgrounds(false), |
| 65 printed_doc_type(printing::SkiaDocumentType::PDF) {} |
65 | 66 |
66 PrintMsg_Print_Params::PrintMsg_Print_Params( | 67 PrintMsg_Print_Params::PrintMsg_Print_Params( |
67 const PrintMsg_Print_Params& other) = default; | 68 const PrintMsg_Print_Params& other) = default; |
68 | 69 |
69 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 70 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
70 | 71 |
71 void PrintMsg_Print_Params::Reset() { | 72 void PrintMsg_Print_Params::Reset() { |
72 page_size = gfx::Size(); | 73 page_size = gfx::Size(); |
73 content_size = gfx::Size(); | 74 content_size = gfx::Size(); |
74 printable_area = gfx::Rect(); | 75 printable_area = gfx::Rect(); |
75 margin_top = 0; | 76 margin_top = 0; |
76 margin_left = 0; | 77 margin_left = 0; |
77 dpi = 0; | 78 dpi = 0; |
78 scale_factor = 1.0f; | 79 scale_factor = 1.0f; |
79 rasterize_pdf = false; | 80 rasterize_pdf = false; |
80 document_cookie = 0; | 81 document_cookie = 0; |
81 selection_only = false; | 82 selection_only = false; |
82 supports_alpha_blend = false; | 83 supports_alpha_blend = false; |
83 preview_ui_id = -1; | 84 preview_ui_id = -1; |
84 preview_request_id = 0; | 85 preview_request_id = 0; |
85 is_first_request = false; | 86 is_first_request = false; |
86 print_scaling_option = blink::kWebPrintScalingOptionSourceSize; | 87 print_scaling_option = blink::kWebPrintScalingOptionSourceSize; |
87 print_to_pdf = false; | 88 print_to_pdf = false; |
88 display_header_footer = false; | 89 display_header_footer = false; |
89 title = base::string16(); | 90 title = base::string16(); |
90 url = base::string16(); | 91 url = base::string16(); |
91 should_print_backgrounds = false; | 92 should_print_backgrounds = false; |
| 93 printed_doc_type = printing::SkiaDocumentType::PDF; |
92 } | 94 } |
93 | 95 |
94 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | 96 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
95 : pages() { | 97 : pages() { |
96 } | 98 } |
97 | 99 |
98 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params( | 100 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params( |
99 const PrintMsg_PrintPages_Params& other) = default; | 101 const PrintMsg_PrintPages_Params& other) = default; |
100 | 102 |
101 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | 103 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
(...skipping 19 matching lines...) Expand all Loading... |
121 PrintHostMsg_SetOptionsFromDocument_Params() | 123 PrintHostMsg_SetOptionsFromDocument_Params() |
122 : is_scaling_disabled(false), | 124 : is_scaling_disabled(false), |
123 copies(0), | 125 copies(0), |
124 duplex(printing::UNKNOWN_DUPLEX_MODE) { | 126 duplex(printing::UNKNOWN_DUPLEX_MODE) { |
125 } | 127 } |
126 | 128 |
127 PrintHostMsg_SetOptionsFromDocument_Params:: | 129 PrintHostMsg_SetOptionsFromDocument_Params:: |
128 ~PrintHostMsg_SetOptionsFromDocument_Params() { | 130 ~PrintHostMsg_SetOptionsFromDocument_Params() { |
129 } | 131 } |
130 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 132 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
OLD | NEW |