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

Unified Diff: chrome/service/service_utility_process_host.cc

Issue 8146004: Added autorotate flag in PDF rendering and wiring it through service-utility channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/service/service_utility_process_host.cc
===================================================================
--- chrome/service/service_utility_process_host.cc (revision 104038)
+++ chrome/service/service_utility_process_host.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/common/chrome_utility_messages.h"
#include "ipc/ipc_switches.h"
#include "printing/page_range.h"
+#include "printing/pdf_render_settings.h"
#include "ui/base/ui_base_switches.h"
#include "ui/gfx/rect.h"
@@ -40,6 +41,7 @@
const FilePath& pdf_path,
const gfx::Rect& render_area,
Lei Zhang 2011/10/05 20:36:19 Why not make this a PdfRenderSettings as well?
int render_dpi,
+ bool autorotate,
const std::vector<printing::PageRange>& page_ranges) {
#if !defined(OS_WIN)
// This is only implemented on Windows (because currently it is only needed
@@ -79,8 +81,7 @@
new ChromeUtilityMsg_RenderPDFPagesToMetafile(
pdf_file_in_utility_process,
metafile_path_,
- render_area,
- render_dpi,
+ printing::PdfRenderSettings(render_area, render_dpi, autorotate),
page_ranges));
#endif // !defined(OS_WIN)
}

Powered by Google App Engine
This is Rietveld 408576698