| 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 23 matching lines...) Expand all Loading... |
| 34 #include "components/printing/common/print_messages.h" | 34 #include "components/printing/common/print_messages.h" |
| 35 } // namespace IPC | 35 } // namespace IPC |
| 36 | 36 |
| 37 PrintMsg_Print_Params::PrintMsg_Print_Params() | 37 PrintMsg_Print_Params::PrintMsg_Print_Params() |
| 38 : page_size(), | 38 : page_size(), |
| 39 content_size(), | 39 content_size(), |
| 40 printable_area(), | 40 printable_area(), |
| 41 margin_top(0), | 41 margin_top(0), |
| 42 margin_left(0), | 42 margin_left(0), |
| 43 dpi(0), | 43 dpi(0), |
| 44 min_shrink(0), | |
| 45 max_shrink(0), | |
| 46 desired_dpi(0), | 44 desired_dpi(0), |
| 47 document_cookie(0), | 45 document_cookie(0), |
| 48 selection_only(false), | 46 selection_only(false), |
| 49 supports_alpha_blend(false), | 47 supports_alpha_blend(false), |
| 50 preview_ui_id(-1), | 48 preview_ui_id(-1), |
| 51 preview_request_id(0), | 49 preview_request_id(0), |
| 52 is_first_request(false), | 50 is_first_request(false), |
| 53 print_scaling_option(blink::WebPrintScalingOptionSourceSize), | 51 print_scaling_option(blink::WebPrintScalingOptionSourceSize), |
| 54 print_to_pdf(false), | 52 print_to_pdf(false), |
| 55 display_header_footer(false), | 53 display_header_footer(false), |
| 56 title(), | 54 title(), |
| 57 url(), | 55 url(), |
| 58 should_print_backgrounds(false) { | 56 should_print_backgrounds(false) { |
| 59 } | 57 } |
| 60 | 58 |
| 61 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 59 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 62 | 60 |
| 63 void PrintMsg_Print_Params::Reset() { | 61 void PrintMsg_Print_Params::Reset() { |
| 64 page_size = gfx::Size(); | 62 page_size = gfx::Size(); |
| 65 content_size = gfx::Size(); | 63 content_size = gfx::Size(); |
| 66 printable_area = gfx::Rect(); | 64 printable_area = gfx::Rect(); |
| 67 margin_top = 0; | 65 margin_top = 0; |
| 68 margin_left = 0; | 66 margin_left = 0; |
| 69 dpi = 0; | 67 dpi = 0; |
| 70 min_shrink = 0; | |
| 71 max_shrink = 0; | |
| 72 desired_dpi = 0; | 68 desired_dpi = 0; |
| 73 document_cookie = 0; | 69 document_cookie = 0; |
| 74 selection_only = false; | 70 selection_only = false; |
| 75 supports_alpha_blend = false; | 71 supports_alpha_blend = false; |
| 76 preview_ui_id = -1; | 72 preview_ui_id = -1; |
| 77 preview_request_id = 0; | 73 preview_request_id = 0; |
| 78 is_first_request = false; | 74 is_first_request = false; |
| 79 print_scaling_option = blink::WebPrintScalingOptionSourceSize; | 75 print_scaling_option = blink::WebPrintScalingOptionSourceSize; |
| 80 print_to_pdf = false; | 76 print_to_pdf = false; |
| 81 display_header_footer = false; | 77 display_header_footer = false; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 111 PrintHostMsg_SetOptionsFromDocument_Params() | 107 PrintHostMsg_SetOptionsFromDocument_Params() |
| 112 : is_scaling_disabled(false), | 108 : is_scaling_disabled(false), |
| 113 copies(0), | 109 copies(0), |
| 114 duplex(printing::UNKNOWN_DUPLEX_MODE) { | 110 duplex(printing::UNKNOWN_DUPLEX_MODE) { |
| 115 } | 111 } |
| 116 | 112 |
| 117 PrintHostMsg_SetOptionsFromDocument_Params:: | 113 PrintHostMsg_SetOptionsFromDocument_Params:: |
| 118 ~PrintHostMsg_SetOptionsFromDocument_Params() { | 114 ~PrintHostMsg_SetOptionsFromDocument_Params() { |
| 119 } | 115 } |
| 120 #endif // defined(ENABLE_PRINT_PREVIEW) | 116 #endif // defined(ENABLE_PRINT_PREVIEW) |
| OLD | NEW |