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

Unified Diff: chrome/browser/printing/print_job.h

Issue 2633573002: Add Postscript Printing (Closed)
Patch Set: Rebase 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_job.h
diff --git a/chrome/browser/printing/print_job.h b/chrome/browser/printing/print_job.h
index 0dfca6f93ad5f8cbb37a059758fd27d042e1dfaf..2fe98eaf4ffa97a671eabdfc83a47a1cfd69e484 100644
--- a/chrome/browser/printing/print_job.h
+++ b/chrome/browser/printing/print_job.h
@@ -99,6 +99,12 @@ class PrintJob : public PrintJobWorkerOwner,
const gfx::Size& page_size,
const gfx::Rect& content_area,
bool print_text_with_gdi);
+
+ void StartPdfToPostScriptConversion(
+ const scoped_refptr<base::RefCountedMemory>& bytes,
+ const gfx::Rect& content_area,
+ const gfx::Point& physical_offset,
+ bool ps_level2);
#endif // defined(OS_WIN)
protected:
@@ -128,7 +134,7 @@ class PrintJob : public PrintJobWorkerOwner,
void OnPdfConversionStarted(int page_count);
void OnPdfPageConverted(int page_number,
float scale_factor,
- std::unique_ptr<MetafilePlayer> emf);
+ std::unique_ptr<MetafilePlayer> metafile);
#endif // defined(OS_WIN)
content::NotificationRegistrar registrar_;
@@ -156,6 +162,7 @@ class PrintJob : public PrintJobWorkerOwner,
bool is_canceling_;
#if defined(OS_WIN)
+ bool is_postscript_;
Vitaly Buka (NO REVIEWS) 2017/01/27 00:38:49 I don't see where this is initialized I'd put ini
rbpotter 2017/01/27 16:37:21 Acknowledged.
class PdfConversionState;
std::unique_ptr<PdfConversionState> pdf_conversion_state_;
std::vector<int> pdf_page_mapping_;

Powered by Google App Engine
This is Rietveld 408576698