| 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_id(-1), | 24 preview_ui_id(-1), |
| 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 should_print_backgrounds(false) { |
| 33 } | 34 } |
| 34 | 35 |
| 35 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | 36 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 36 | 37 |
| 37 void PrintMsg_Print_Params::Reset() { | 38 void PrintMsg_Print_Params::Reset() { |
| 38 page_size = gfx::Size(); | 39 page_size = gfx::Size(); |
| 39 content_size = gfx::Size(); | 40 content_size = gfx::Size(); |
| 40 printable_area = gfx::Rect(); | 41 printable_area = gfx::Rect(); |
| 41 margin_top = 0; | 42 margin_top = 0; |
| 42 margin_left = 0; | 43 margin_left = 0; |
| 43 dpi = 0; | 44 dpi = 0; |
| 44 min_shrink = 0; | 45 min_shrink = 0; |
| 45 max_shrink = 0; | 46 max_shrink = 0; |
| 46 desired_dpi = 0; | 47 desired_dpi = 0; |
| 47 document_cookie = 0; | 48 document_cookie = 0; |
| 48 selection_only = false; | 49 selection_only = false; |
| 49 supports_alpha_blend = false; | 50 supports_alpha_blend = false; |
| 50 preview_ui_id = -1; | 51 preview_ui_id = -1; |
| 51 preview_request_id = 0; | 52 preview_request_id = 0; |
| 52 is_first_request = false; | 53 is_first_request = false; |
| 53 print_scaling_option = WebKit::WebPrintScalingOptionSourceSize; | 54 print_scaling_option = WebKit::WebPrintScalingOptionSourceSize; |
| 54 print_to_pdf = false; | 55 print_to_pdf = false; |
| 55 display_header_footer = false; | 56 display_header_footer = false; |
| 56 date = string16(); | 57 date = string16(); |
| 57 title = string16(); | 58 title = string16(); |
| 58 url = string16(); | 59 url = string16(); |
| 60 should_print_backgrounds = false; |
| 59 } | 61 } |
| 60 | 62 |
| 61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | 63 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
| 62 : pages() { | 64 : pages() { |
| 63 } | 65 } |
| 64 | 66 |
| 65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | 67 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
| 66 | 68 |
| 67 void PrintMsg_PrintPages_Params::Reset() { | 69 void PrintMsg_PrintPages_Params::Reset() { |
| 68 params.Reset(); | 70 params.Reset(); |
| 69 pages = std::vector<int>(); | 71 pages = std::vector<int>(); |
| 70 } | 72 } |
| OLD | NEW |