| 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 "chrome/common/print_messages.h" | 5 #include "chrome/common/print_messages.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "ui/gfx/size.h" | 9 #include "ui/gfx/size.h" |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 selection_only(false), | 22 selection_only(false), |
| 23 supports_alpha_blend(false), | 23 supports_alpha_blend(false), |
| 24 preview_ui_addr(), | 24 preview_ui_addr(), |
| 25 preview_request_id(0), | 25 preview_request_id(0), |
| 26 is_first_request(false), | 26 is_first_request(false), |
| 27 print_scaling_option(WebKit::WebPrintScalingOptionSourceSize), | 27 print_scaling_option(WebKit::WebPrintScalingOptionSourceSize), |
| 28 print_to_pdf(false), | 28 print_to_pdf(false), |
| 29 display_header_footer(false), | 29 display_header_footer(false), |
| 30 date(), | 30 date(), |
| 31 title(), | 31 title(), |
| 32 url() { | 32 url(), |
| 33 raster_type(RASTER_NONE), |
| 34 raster_size(16 * 1024 * 1024) { |
| 33 } | 35 } |
| 34 | 36 |
| 35 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 37 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 36 | 38 |
| 37 void PrintMsg_Print_Params::Reset() { | 39 void PrintMsg_Print_Params::Reset() { |
| 38 page_size = gfx::Size(); | 40 *this = PrintMsg_Print_Params(); |
| 39 content_size = gfx::Size(); | |
| 40 printable_area = gfx::Rect(); | |
| 41 margin_top = 0; | |
| 42 margin_left = 0; | |
| 43 dpi = 0; | |
| 44 min_shrink = 0; | |
| 45 max_shrink = 0; | |
| 46 desired_dpi = 0; | |
| 47 document_cookie = 0; | |
| 48 selection_only = false; | |
| 49 supports_alpha_blend = false; | |
| 50 preview_ui_addr = std::string(); | |
| 51 preview_request_id = 0; | |
| 52 is_first_request = false; | |
| 53 print_scaling_option = WebKit::WebPrintScalingOptionSourceSize; | |
| 54 print_to_pdf = false; | |
| 55 display_header_footer = false; | |
| 56 date = string16(); | |
| 57 title = string16(); | |
| 58 url = string16(); | |
| 59 } | 41 } |
| 60 | 42 |
| 61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | 43 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
| 62 : pages() { | 44 : pages() { |
| 63 } | 45 } |
| 64 | 46 |
| 65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | 47 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
| 66 | 48 |
| 67 void PrintMsg_PrintPages_Params::Reset() { | 49 void PrintMsg_PrintPages_Params::Reset() { |
| 68 params.Reset(); | 50 params.Reset(); |
| 69 pages = std::vector<int>(); | 51 pages = std::vector<int>(); |
| 70 } | 52 } |
| OLD | NEW |