Chromium Code Reviews| 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) |
| } |