Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8377)

Unified Diff: chrome/common/print_messages.cc

Issue 8585017: PrintPreview: Honor the print media page size and margin values. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/print_messages.cc
diff --git a/chrome/common/print_messages.cc b/chrome/common/print_messages.cc
index 4464f1300031ae060554d556ebed9eb699f07e6c..d7988b581f597c5dcd9c7571948314ffd7120910 100644
--- a/chrome/common/print_messages.cc
+++ b/chrome/common/print_messages.cc
@@ -11,6 +11,7 @@
PrintMsg_Print_Params::PrintMsg_Print_Params()
: page_size(),
printable_size(),
+ printable_area(),
margin_top(0),
margin_left(0),
dpi(0),
@@ -23,6 +24,7 @@ PrintMsg_Print_Params::PrintMsg_Print_Params()
preview_ui_addr(),
preview_request_id(0),
is_first_request(false),
+ print_to_pdf(false),
display_header_footer(false),
date(),
title(),
@@ -34,6 +36,7 @@ PrintMsg_Print_Params::~PrintMsg_Print_Params() {}
void PrintMsg_Print_Params::Reset() {
page_size = gfx::Size();
printable_size = gfx::Size();
+ printable_area = gfx::Rect();
margin_top = 0;
margin_left = 0;
dpi = 0;
@@ -46,6 +49,7 @@ void PrintMsg_Print_Params::Reset() {
preview_ui_addr = std::string();
preview_request_id = 0;
is_first_request = false;
+ print_to_pdf = false;
display_header_footer = false;
date = string16();
title = string16();

Powered by Google App Engine
This is Rietveld 408576698