| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 } // namespace IPC | 42 } // namespace IPC |
| 43 | 43 |
| 44 PrintMsg_Print_Params::PrintMsg_Print_Params() | 44 PrintMsg_Print_Params::PrintMsg_Print_Params() |
| 45 : page_size(), | 45 : page_size(), |
| 46 content_size(), | 46 content_size(), |
| 47 printable_area(), | 47 printable_area(), |
| 48 margin_top(0), | 48 margin_top(0), |
| 49 margin_left(0), | 49 margin_left(0), |
| 50 dpi(0), | 50 dpi(0), |
| 51 scale_factor(1.0f), | 51 scale_factor(1.0f), |
| 52 desired_dpi(0), | |
| 53 rasterize_pdf(false), | 52 rasterize_pdf(false), |
| 54 document_cookie(0), | 53 document_cookie(0), |
| 55 selection_only(false), | 54 selection_only(false), |
| 56 supports_alpha_blend(false), | 55 supports_alpha_blend(false), |
| 57 preview_ui_id(-1), | 56 preview_ui_id(-1), |
| 58 preview_request_id(0), | 57 preview_request_id(0), |
| 59 is_first_request(false), | 58 is_first_request(false), |
| 60 print_scaling_option(blink::WebPrintScalingOptionSourceSize), | 59 print_scaling_option(blink::WebPrintScalingOptionSourceSize), |
| 61 print_to_pdf(false), | 60 print_to_pdf(false), |
| 62 display_header_footer(false), | 61 display_header_footer(false), |
| 63 title(), | 62 title(), |
| 64 url(), | 63 url(), |
| 65 should_print_backgrounds(false) {} | 64 should_print_backgrounds(false) {} |
| 66 | 65 |
| 67 PrintMsg_Print_Params::PrintMsg_Print_Params( | 66 PrintMsg_Print_Params::PrintMsg_Print_Params( |
| 68 const PrintMsg_Print_Params& other) = default; | 67 const PrintMsg_Print_Params& other) = default; |
| 69 | 68 |
| 70 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 69 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 71 | 70 |
| 72 void PrintMsg_Print_Params::Reset() { | 71 void PrintMsg_Print_Params::Reset() { |
| 73 page_size = gfx::Size(); | 72 page_size = gfx::Size(); |
| 74 content_size = gfx::Size(); | 73 content_size = gfx::Size(); |
| 75 printable_area = gfx::Rect(); | 74 printable_area = gfx::Rect(); |
| 76 margin_top = 0; | 75 margin_top = 0; |
| 77 margin_left = 0; | 76 margin_left = 0; |
| 78 dpi = 0; | 77 dpi = 0; |
| 79 scale_factor = 1.0f; | 78 scale_factor = 1.0f; |
| 80 desired_dpi = 0; | |
| 81 rasterize_pdf = false; | 79 rasterize_pdf = false; |
| 82 document_cookie = 0; | 80 document_cookie = 0; |
| 83 selection_only = false; | 81 selection_only = false; |
| 84 supports_alpha_blend = false; | 82 supports_alpha_blend = false; |
| 85 preview_ui_id = -1; | 83 preview_ui_id = -1; |
| 86 preview_request_id = 0; | 84 preview_request_id = 0; |
| 87 is_first_request = false; | 85 is_first_request = false; |
| 88 print_scaling_option = blink::WebPrintScalingOptionSourceSize; | 86 print_scaling_option = blink::WebPrintScalingOptionSourceSize; |
| 89 print_to_pdf = false; | 87 print_to_pdf = false; |
| 90 display_header_footer = false; | 88 display_header_footer = false; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 PrintHostMsg_SetOptionsFromDocument_Params() | 121 PrintHostMsg_SetOptionsFromDocument_Params() |
| 124 : is_scaling_disabled(false), | 122 : is_scaling_disabled(false), |
| 125 copies(0), | 123 copies(0), |
| 126 duplex(printing::UNKNOWN_DUPLEX_MODE) { | 124 duplex(printing::UNKNOWN_DUPLEX_MODE) { |
| 127 } | 125 } |
| 128 | 126 |
| 129 PrintHostMsg_SetOptionsFromDocument_Params:: | 127 PrintHostMsg_SetOptionsFromDocument_Params:: |
| 130 ~PrintHostMsg_SetOptionsFromDocument_Params() { | 128 ~PrintHostMsg_SetOptionsFromDocument_Params() { |
| 131 } | 129 } |
| 132 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) | 130 #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| OLD | NEW |