| 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 "ui/gfx/geometry/size.h" | 6 #include "ui/gfx/geometry/size.h" |
| 7 | 7 |
| 8 #define IPC_MESSAGE_IMPL | 8 #define IPC_MESSAGE_IMPL |
| 9 #include "components/printing/common/print_messages.h" | 9 #include "components/printing/common/print_messages.h" |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 preview_request_id(0), | 53 preview_request_id(0), |
| 54 is_first_request(false), | 54 is_first_request(false), |
| 55 print_scaling_option(blink::WebPrintScalingOptionSourceSize), | 55 print_scaling_option(blink::WebPrintScalingOptionSourceSize), |
| 56 print_to_pdf(false), | 56 print_to_pdf(false), |
| 57 display_header_footer(false), | 57 display_header_footer(false), |
| 58 title(), | 58 title(), |
| 59 url(), | 59 url(), |
| 60 should_print_backgrounds(false) { | 60 should_print_backgrounds(false) { |
| 61 } | 61 } |
| 62 | 62 |
| 63 PrintMsg_Print_Params::PrintMsg_Print_Params( |
| 64 const PrintMsg_Print_Params& other) = default; |
| 65 |
| 63 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 66 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 64 | 67 |
| 65 void PrintMsg_Print_Params::Reset() { | 68 void PrintMsg_Print_Params::Reset() { |
| 66 page_size = gfx::Size(); | 69 page_size = gfx::Size(); |
| 67 content_size = gfx::Size(); | 70 content_size = gfx::Size(); |
| 68 printable_area = gfx::Rect(); | 71 printable_area = gfx::Rect(); |
| 69 margin_top = 0; | 72 margin_top = 0; |
| 70 margin_left = 0; | 73 margin_left = 0; |
| 71 dpi = 0; | 74 dpi = 0; |
| 72 desired_dpi = 0; | 75 desired_dpi = 0; |
| 73 document_cookie = 0; | 76 document_cookie = 0; |
| 74 selection_only = false; | 77 selection_only = false; |
| 75 supports_alpha_blend = false; | 78 supports_alpha_blend = false; |
| 76 preview_ui_id = -1; | 79 preview_ui_id = -1; |
| 77 preview_request_id = 0; | 80 preview_request_id = 0; |
| 78 is_first_request = false; | 81 is_first_request = false; |
| 79 print_scaling_option = blink::WebPrintScalingOptionSourceSize; | 82 print_scaling_option = blink::WebPrintScalingOptionSourceSize; |
| 80 print_to_pdf = false; | 83 print_to_pdf = false; |
| 81 display_header_footer = false; | 84 display_header_footer = false; |
| 82 title = base::string16(); | 85 title = base::string16(); |
| 83 url = base::string16(); | 86 url = base::string16(); |
| 84 should_print_backgrounds = false; | 87 should_print_backgrounds = false; |
| 85 } | 88 } |
| 86 | 89 |
| 87 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | 90 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
| 88 : pages() { | 91 : pages() { |
| 89 } | 92 } |
| 90 | 93 |
| 94 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params( |
| 95 const PrintMsg_PrintPages_Params& other) = default; |
| 96 |
| 91 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | 97 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
| 92 | 98 |
| 93 void PrintMsg_PrintPages_Params::Reset() { | 99 void PrintMsg_PrintPages_Params::Reset() { |
| 94 params.Reset(); | 100 params.Reset(); |
| 95 pages = std::vector<int>(); | 101 pages = std::vector<int>(); |
| 96 } | 102 } |
| 97 | 103 |
| 98 #if defined(ENABLE_PRINT_PREVIEW) | 104 #if defined(ENABLE_PRINT_PREVIEW) |
| 99 PrintHostMsg_RequestPrintPreview_Params:: | 105 PrintHostMsg_RequestPrintPreview_Params:: |
| 100 PrintHostMsg_RequestPrintPreview_Params() | 106 PrintHostMsg_RequestPrintPreview_Params() |
| (...skipping 10 matching lines...) Expand all Loading... |
| 111 PrintHostMsg_SetOptionsFromDocument_Params() | 117 PrintHostMsg_SetOptionsFromDocument_Params() |
| 112 : is_scaling_disabled(false), | 118 : is_scaling_disabled(false), |
| 113 copies(0), | 119 copies(0), |
| 114 duplex(printing::UNKNOWN_DUPLEX_MODE) { | 120 duplex(printing::UNKNOWN_DUPLEX_MODE) { |
| 115 } | 121 } |
| 116 | 122 |
| 117 PrintHostMsg_SetOptionsFromDocument_Params:: | 123 PrintHostMsg_SetOptionsFromDocument_Params:: |
| 118 ~PrintHostMsg_SetOptionsFromDocument_Params() { | 124 ~PrintHostMsg_SetOptionsFromDocument_Params() { |
| 119 } | 125 } |
| 120 #endif // defined(ENABLE_PRINT_PREVIEW) | 126 #endif // defined(ENABLE_PRINT_PREVIEW) |
| OLD | NEW |