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

Unified Diff: chrome/browser/printing/print_preview_pdf_generated_browsertest.cc

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Fix Linux compile error Created 3 years, 11 months 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_pdf_generated_browsertest.cc
diff --git a/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc b/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
index 9c156a0654489ea8f12e86b099781f1d643a16e4..455837de73c990add785aa910970e5628e01c04d 100644
--- a/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
+++ b/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
@@ -50,6 +50,7 @@
#include "printing/pdf_render_settings.h"
#include "printing/units.h"
#include "ui/gfx/codec/png_codec.h"
+#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
#include "url/gurl.h"
@@ -370,7 +371,8 @@ class PrintPreviewPdfGeneratedBrowserTest : public InProcessBrowserTest {
total_height_in_pixels += height_in_pixels;
gfx::Rect rect(width_in_pixels, height_in_pixels);
- PdfRenderSettings settings(rect, kDpi, true);
+ PdfRenderSettings settings(rect, gfx::Point(0,0), kDpi, true,
+ PdfRenderSettings::Mode::NORMAL);
int int_max = std::numeric_limits<int>::max();
if (settings.area.width() > int_max / kColorChannels ||

Powered by Google App Engine
This is Rietveld 408576698