Enable Enterprise enrollment on desktop builds.
[chromium-blink-merge.git] / chrome / common / print_messages.cc
blob58946296497a763662b8252687bb0bd5fe38fdc2
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()
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) {
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();
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;
61 PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
62 : pages() {
65 PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
67 void PrintMsg_PrintPages_Params::Reset() {
68 params.Reset();
69 pages = std::vector<int>();
72 PrintHostMsg_RequestPrintPreview_Params::
73 PrintHostMsg_RequestPrintPreview_Params()
74 : is_modifiable(false),
75 webnode_only(false),
76 has_selection(false),
77 selection_only(false) {
80 PrintHostMsg_RequestPrintPreview_Params::
81 ~PrintHostMsg_RequestPrintPreview_Params() {}