1 // Copyright 2013 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 // TODO(sgurun) copied from chrome/common. Remove after crbug.com/322276
7 #include "android_webview/common/print_messages.h"
9 #include "base/basictypes.h"
10 #include "base/strings/string16.h"
11 #include "ui/gfx/size.h"
13 PrintMsg_Print_Params::PrintMsg_Print_Params()
24 selection_only(false),
25 supports_alpha_blend(false),
27 preview_request_id(0),
28 is_first_request(false),
29 print_scaling_option(blink::WebPrintScalingOptionSourceSize
),
31 display_header_footer(false),
34 should_print_backgrounds(false) {
37 PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
39 void PrintMsg_Print_Params::Reset() {
40 page_size
= gfx::Size();
41 content_size
= gfx::Size();
42 printable_area
= gfx::Rect();
50 selection_only
= false;
51 supports_alpha_blend
= false;
53 preview_request_id
= 0;
54 is_first_request
= false;
55 print_scaling_option
= blink::WebPrintScalingOptionSourceSize
;
57 display_header_footer
= false;
58 title
= base::string16();
59 url
= base::string16();
60 should_print_backgrounds
= false;
63 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
67 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
69 void PrintMsg_PrintPages_Params::Reset() {
71 pages
= std::vector
<int>();
74 PrintHostMsg_RequestPrintPreview_Params::
75 PrintHostMsg_RequestPrintPreview_Params()
76 : is_modifiable(false),
79 selection_only(false) {
82 PrintHostMsg_RequestPrintPreview_Params::
83 ~PrintHostMsg_RequestPrintPreview_Params() {}