Update printing code to latest
This commit is contained in:
parent
75627ba6ad
commit
ab783413a2
16 changed files with 374 additions and 463 deletions
|
@ -8,23 +8,26 @@
|
|||
#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),
|
||||
min_shrink(0),
|
||||
max_shrink(0),
|
||||
desired_dpi(0),
|
||||
document_cookie(0),
|
||||
selection_only(false),
|
||||
supports_alpha_blend(false),
|
||||
print_scaling_option(blink::WebPrintScalingOptionSourceSize),
|
||||
title(),
|
||||
url(),
|
||||
should_print_backgrounds(false) {
|
||||
}
|
||||
: 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) {}
|
||||
|
||||
PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
|
||||
|
||||
|
@ -35,15 +38,19 @@ void PrintMsg_Print_Params::Reset() {
|
|||
margin_top = 0;
|
||||
margin_left = 0;
|
||||
dpi = 0;
|
||||
min_shrink = 0;
|
||||
max_shrink = 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;
|
||||
title.clear();
|
||||
url.clear();
|
||||
print_to_pdf = false;
|
||||
display_header_footer = false;
|
||||
title = base::string16();
|
||||
url = base::string16();
|
||||
should_print_backgrounds = false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue