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