Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / android_webview / common / print_messages.cc
blobf7d3597bcd2b9fa416371a6fdb39a3d5e3c2a327
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()
14 : page_size(),
15 content_size(),
16 printable_area(),
17 margin_top(0),
18 margin_left(0),
19 dpi(0),
20 min_shrink(0),
21 max_shrink(0),
22 desired_dpi(0),
23 document_cookie(0),
24 selection_only(false),
25 supports_alpha_blend(false),
26 preview_ui_id(-1),
27 preview_request_id(0),
28 is_first_request(false),
29 print_scaling_option(blink::WebPrintScalingOptionSourceSize),
30 print_to_pdf(false),
31 display_header_footer(false),
32 title(),
33 url(),
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();
43 margin_top = 0;
44 margin_left = 0;
45 dpi = 0;
46 min_shrink = 0;
47 max_shrink = 0;
48 desired_dpi = 0;
49 document_cookie = 0;
50 selection_only = false;
51 supports_alpha_blend = false;
52 preview_ui_id = -1;
53 preview_request_id = 0;
54 is_first_request = false;
55 print_scaling_option = blink::WebPrintScalingOptionSourceSize;
56 print_to_pdf = false;
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()
64 : pages() {
67 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
69 void PrintMsg_PrintPages_Params::Reset() {
70 params.Reset();
71 pages = std::vector<int>();
74 PrintHostMsg_RequestPrintPreview_Params::
75 PrintHostMsg_RequestPrintPreview_Params()
76 : is_modifiable(false),
77 webnode_only(false),
78 has_selection(false),
79 selection_only(false) {
82 PrintHostMsg_RequestPrintPreview_Params::
83 ~PrintHostMsg_RequestPrintPreview_Params() {}