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

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: 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/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 50770adc8fa07ee45c185a4c9abcbc02d803e7b1..3318f4ad67b80dd4a3aafb1de91b15dc5439e05d 100644
--- a/chrome/browser/printing/print_preview_message_handler.cc
+++ b/chrome/browser/printing/print_preview_message_handler.cc
@@ -196,14 +196,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->web_ui())
return;
PrintPreviewUI* print_preview_ui =
static_cast<PrintPreviewUI*>(print_preview_tab->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