OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/common/print_messages.h" |
| 6 |
| 7 #include "base/basictypes.h" |
| 8 #include "base/string16.h" |
| 9 #include "ui/gfx/size.h" |
| 10 |
| 11 PrintMsg_Print_Params::PrintMsg_Print_Params() |
| 12 : page_size(), |
| 13 printable_size(), |
| 14 margin_top(0), |
| 15 margin_left(0), |
| 16 dpi(0), |
| 17 min_shrink(0), |
| 18 max_shrink(0), |
| 19 desired_dpi(0), |
| 20 document_cookie(0), |
| 21 selection_only(0), |
| 22 supports_alpha_blend(0), |
| 23 preview_request_id(0), |
| 24 is_first_request(0), |
| 25 display_header_footer(0), |
| 26 date(), |
| 27 title(), |
| 28 url() { |
| 29 } |
| 30 |
| 31 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} |
| 32 |
| 33 void PrintMsg_Print_Params::Reset() { |
| 34 dpi = 0; |
| 35 max_shrink = 0; |
| 36 min_shrink = 0; |
| 37 desired_dpi = 0; |
| 38 selection_only = 0; |
| 39 document_cookie = 0; |
| 40 page_size = gfx::Size(); |
| 41 page_size = gfx::Size(); |
| 42 printable_size = gfx::Size(); |
| 43 margin_left = 0; |
| 44 margin_top = 0; |
| 45 is_first_request = 0; |
| 46 preview_request_id = 0; |
| 47 display_header_footer = 0; |
| 48 date = string16(); |
| 49 title = string16(); |
| 50 url = string16(); |
| 51 } |
| 52 |
| 53 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() |
| 54 : pages() { |
| 55 } |
| 56 |
| 57 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} |
| 58 |
| 59 void PrintMsg_PrintPages_Params::Reset() { |
| 60 params.Reset(); |
| 61 pages = std::vector<int>(); |
| 62 } |
| 63 |
OLD | NEW |