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.
5 #include "chrome/common/print_messages.h"
7 #include "base/basictypes.h"
8 #include "base/strings/string16.h"
9 #include "ui/gfx/size.h"
11 PrintMsg_Print_Params::PrintMsg_Print_Params()
22 selection_only(false),
23 supports_alpha_blend(false),
25 preview_request_id(0),
26 is_first_request(false),
27 print_scaling_option(blink::WebPrintScalingOptionSourceSize
),
29 display_header_footer(false),
32 should_print_backgrounds(false) {
35 PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
37 void PrintMsg_Print_Params::Reset() {
38 page_size
= gfx::Size();
39 content_size
= gfx::Size();
40 printable_area
= gfx::Rect();
48 selection_only
= false;
49 supports_alpha_blend
= false;
51 preview_request_id
= 0;
52 is_first_request
= false;
53 print_scaling_option
= blink::WebPrintScalingOptionSourceSize
;
55 display_header_footer
= false;
56 title
= base::string16();
57 url
= base::string16();
58 should_print_backgrounds
= false;
61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
67 void PrintMsg_PrintPages_Params::Reset() {
69 pages
= std::vector
<int>();
72 PrintHostMsg_RequestPrintPreview_Params::
73 PrintHostMsg_RequestPrintPreview_Params()
74 : is_modifiable(false),
77 selection_only(false) {
80 PrintHostMsg_RequestPrintPreview_Params::
81 ~PrintHostMsg_RequestPrintPreview_Params() {}