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