26135b412b
# Conflicts: # atom/browser/api/atom_api_web_contents.cc # chromium_src/chrome/browser/printing/print_job_worker.cc # chromium_src/chrome/browser/printing/print_job_worker.h # chromium_src/chrome/browser/printing/print_view_manager_base.cc # chromium_src/chrome/browser/printing/print_view_manager_base.h # chromium_src/chrome/browser/printing/printer_query.cc # chromium_src/chrome/common/print_messages.cc # chromium_src/chrome/renderer/printing/print_web_view_helper.cc
69 lines
1.7 KiB
C++
69 lines
1.7 KiB
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "chrome/common/print_messages.h"
|
|
|
|
#include "base/strings/string16.h"
|
|
#include "ui/gfx/geometry/size.h"
|
|
|
|
PrintMsg_Print_Params::PrintMsg_Print_Params()
|
|
: page_size(),
|
|
content_size(),
|
|
printable_area(),
|
|
margin_top(0),
|
|
margin_left(0),
|
|
dpi(0),
|
|
scale_factor(1.0f),
|
|
desired_dpi(0),
|
|
document_cookie(0),
|
|
selection_only(false),
|
|
supports_alpha_blend(false),
|
|
preview_ui_id(-1),
|
|
preview_request_id(0),
|
|
is_first_request(false),
|
|
print_scaling_option(blink::WebPrintScalingOptionSourceSize),
|
|
print_to_pdf(false),
|
|
display_header_footer(false),
|
|
title(),
|
|
url(),
|
|
should_print_backgrounds(false),
|
|
device_name() {
|
|
}
|
|
|
|
PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
|
|
|
|
void PrintMsg_Print_Params::Reset() {
|
|
page_size = gfx::Size();
|
|
content_size = gfx::Size();
|
|
printable_area = gfx::Rect();
|
|
margin_top = 0;
|
|
margin_left = 0;
|
|
dpi = 0;
|
|
scale_factor = 1.0f;
|
|
desired_dpi = 0;
|
|
document_cookie = 0;
|
|
selection_only = false;
|
|
supports_alpha_blend = false;
|
|
preview_ui_id = -1;
|
|
preview_request_id = 0;
|
|
is_first_request = false;
|
|
print_scaling_option = blink::WebPrintScalingOptionSourceSize;
|
|
print_to_pdf = false;
|
|
display_header_footer = false;
|
|
title = base::string16();
|
|
url = base::string16();
|
|
should_print_backgrounds = false;
|
|
device_name.clear();
|
|
}
|
|
|
|
PrintMsg_PrintPages_Params::PrintMsg_PrintPages_Params()
|
|
: pages() {
|
|
}
|
|
|
|
PrintMsg_PrintPages_Params::~PrintMsg_PrintPages_Params() {}
|
|
|
|
void PrintMsg_PrintPages_Params::Reset() {
|
|
params.Reset();
|
|
pages = std::vector<int>();
|
|
}
|