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

Unified Diff: chrome/browser/printing/print_preview_message_handler.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: Fix conflicts 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/browser/printing/print_preview_message_handler.cc
diff --git a/chrome/browser/printing/print_preview_message_handler.cc b/chrome/browser/printing/print_preview_message_handler.cc
index 7a0470afa395672875e769b3065ef2946a3761e5..951cf95c2cff05bd12859594c3bbf3966585a22a 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -197,14 +197,16 @@ void PrintPreviewMessageHandler::OnPrintPreviewFailed(int document_cookie) {
}
void PrintPreviewMessageHandler::OnDidGetDefaultPageLayout(
- const PageSizeMargins& page_layout_in_points) {
+ const PageSizeMargins& page_layout_in_points,
+ bool has_custom_page_size_style) {
TabContentsWrapper* print_preview_tab = GetPrintPreviewTab();
if (!print_preview_tab || !print_preview_tab->tab_contents()->web_ui())
return;
PrintPreviewUI* print_preview_ui =
static_cast<PrintPreviewUI*>(print_preview_tab->tab_contents()->web_ui());
- print_preview_ui->OnDidGetDefaultPageLayout(page_layout_in_points);
+ print_preview_ui->OnDidGetDefaultPageLayout(page_layout_in_points,
+ has_custom_page_size_style);
}
void PrintPreviewMessageHandler::OnPrintPreviewCancelled(int document_cookie) {

Powered by Google App Engine
This is Rietveld 408576698