OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/common/print_messages.h" | |
6 | |
7 #include "base/basictypes.h" | |
8 #include "base/strings/string16.h" | |
9 #include "ui/gfx/geometry/size.h" | |
10 | |
11 PrintMsg_Print_Params::PrintMsg_Print_Params() | |
12 : page_size(), | |
13 content_size(), | |
14 printable_area(), | |
15 margin_top(0), | |
16 margin_left(0), | |
17 dpi(0), | |
18 min_shrink(0), | |
19 max_shrink(0), | |
20 desired_dpi(0), | |
21 document_cookie(0), | |
22 selection_only(false), | |
23 supports_alpha_blend(false), | |
24 preview_ui_id(-1), | |
25 preview_request_id(0), | |
26 is_first_request(false), | |
27 print_scaling_option(blink::WebPrintScalingOptionSourceSize), | |
28 print_to_pdf(false), | |
29 display_header_footer(false), | |
30 title(), | |
31 url(), | |
32 should_print_backgrounds(false) { | |
33 } | |
34 | |
35 PrintMsg_Print_Params::~PrintMsg_Print_Params() {} | |
36 | |
37 void PrintMsg_Print_Params::Reset() { | |
38 page_size = gfx::Size(); | |
39 content_size = gfx::Size(); | |
40 printable_area = gfx::Rect(); | |
41 margin_top = 0; | |
42 margin_left = 0; | |
43 dpi = 0; | |
44 min_shrink = 0; | |
45 max_shrink = 0; | |
46 desired_dpi = 0; | |
47 document_cookie = 0; | |
48 selection_only = false; | |
49 supports_alpha_blend = false; | |
50 preview_ui_id = -1; | |
51 preview_request_id = 0; | |
52 is_first_request = false; | |
53 print_scaling_option = blink::WebPrintScalingOptionSourceSize; | |
54 print_to_pdf = false; | |
55 display_header_footer = false; | |
56 title = base::string16(); | |
57 url = base::string16(); | |
58 should_print_backgrounds = false; | |
59 } | |
60 | |
61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params() | |
62 : pages() { | |
63 } | |
64 | |
65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {} | |
66 | |
67 void PrintMsg_PrintPages_Params::Reset() { | |
68 params.Reset(); | |
69 pages = std::vector<int>(); | |
70 } | |
71 | |
72 PrintHostMsg_RequestPrintPreview_Params:: | |
73 PrintHostMsg_RequestPrintPreview_Params() | |
74 : is_modifiable(false), | |
75 webnode_only(false), | |
76 has_selection(false), | |
77 selection_only(false) { | |
78 } | |
79 | |
80 PrintHostMsg_RequestPrintPreview_Params:: | |
81 ~PrintHostMsg_RequestPrintPreview_Params() {} | |
82 | |
83 PrintHostMsg_SetOptionsFromDocument_Params:: | |
84 PrintHostMsg_SetOptionsFromDocument_Params() | |
85 : is_scaling_disabled(false), | |
86 copies(0), | |
87 duplex(printing::UNKNOWN_DUPLEX_MODE) { | |
88 } | |
89 | |
90 PrintHostMsg_SetOptionsFromDocument_Params:: | |
91 ~PrintHostMsg_SetOptionsFromDocument_Params() { | |
92 } | |
OLD | NEW |