| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
| 11 PrintMsg_Print_Params::PrintMsg_Print_Params() | 11 PrintMsg_Print_Params::PrintMsg_Print_Params() |
| 12 : page_size(), | 12 : page_size(), |
| 13 printable_size(), | 13 printable_size(), |
| 14 printable_area(), |
| 14 margin_top(0), | 15 margin_top(0), |
| 15 margin_left(0), | 16 margin_left(0), |
| 16 dpi(0), | 17 dpi(0), |
| 17 min_shrink(0), | 18 min_shrink(0), |
| 18 max_shrink(0), | 19 max_shrink(0), |
| 19 desired_dpi(0), | 20 desired_dpi(0), |
| 20 document_cookie(0), | 21 document_cookie(0), |
| 21 selection_only(false), | 22 selection_only(false), |
| 22 supports_alpha_blend(false), | 23 supports_alpha_blend(false), |
| 23 preview_ui_addr(), | 24 preview_ui_addr(), |
| 24 preview_request_id(0), | 25 preview_request_id(0), |
| 25 is_first_request(false), | 26 is_first_request(false), |
| 27 print_to_pdf(false), |
| 26 display_header_footer(false), | 28 display_header_footer(false), |
| 27 date(), | 29 date(), |
| 28 title(), | 30 title(), |
| 29 url() { | 31 url() { |
| 30 } | 32 } |
| 31 | 33 |
| 32 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 34 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 33 | 35 |
| 34 void PrintMsg_Print_Params::Reset() { | 36 void PrintMsg_Print_Params::Reset() { |
| 35 page_size = gfx::Size(); | 37 page_size = gfx::Size(); |
| 36 printable_size = gfx::Size(); | 38 printable_size = gfx::Size(); |
| 39 printable_area = gfx::Rect(); |
| 37 margin_top = 0; | 40 margin_top = 0; |
| 38 margin_left = 0; | 41 margin_left = 0; |
| 39 dpi = 0; | 42 dpi = 0; |
| 40 min_shrink = 0; | 43 min_shrink = 0; |
| 41 max_shrink = 0; | 44 max_shrink = 0; |
| 42 desired_dpi = 0; | 45 desired_dpi = 0; |
| 43 document_cookie = 0; | 46 document_cookie = 0; |
| 44 selection_only = false; | 47 selection_only = false; |
| 45 supports_alpha_blend = false; | 48 supports_alpha_blend = false; |
| 46 preview_ui_addr = std::string(); | 49 preview_ui_addr = std::string(); |
| 47 preview_request_id = 0; | 50 preview_request_id = 0; |
| 48 is_first_request = false; | 51 is_first_request = false; |
| 52 print_to_pdf = false; |
| 49 display_header_footer = false; | 53 display_header_footer = false; |
| 50 date = string16(); | 54 date = string16(); |
| 51 title = string16(); | 55 title = string16(); |
| 52 url = string16(); | 56 url = string16(); |
| 53 } | 57 } |
| 54 | 58 |
| 55 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | 59 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
| 56 : pages() { | 60 : pages() { |
| 57 } | 61 } |
| 58 | 62 |
| 59 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | 63 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
| 60 | 64 |
| 61 void PrintMsg_PrintPages_Params::Reset() { | 65 void PrintMsg_PrintPages_Params::Reset() { |
| 62 params.Reset(); | 66 params.Reset(); |
| 63 pages = std::vector<int>(); | 67 pages = std::vector<int>(); |
| 64 } | 68 } |
| OLD | NEW |