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

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

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_job.h
diff --git a/chrome/browser/printing/print_job.h b/chrome/browser/printing/print_job.h
index 4a7fb3873e58a21ff6f1712da5fe77f77e4bfc6f..4390ececc44163d1690578a73f146f1d410328be 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:
@@ -129,6 +135,11 @@ class PrintJob : public PrintJobWorkerOwner,
void OnPdfToEmfPageConverted(int page_number,
float scale_factor,
std::unique_ptr<MetafilePlayer> emf);
+
+ void OnPdfToPostScriptStarted(int page_count);
+ void OnPdfToPostScriptPageConverted(
+ int page_number,
+ std::unique_ptr<MetafilePlayer> ps_metafile);
#endif // defined(OS_WIN)
content::NotificationRegistrar registrar_;
@@ -158,6 +169,8 @@ class PrintJob : public PrintJobWorkerOwner,
#if defined(OS_WIN)
class PdfToEmfState;
std::unique_ptr<PdfToEmfState> pdf_to_emf_state_;
+ class PdfToPostScriptState;
+ std::unique_ptr<PdfToPostScriptState> pdf_to_ps_state_;
std::vector<int> pdf_page_mapping_;
#endif // defined(OS_WIN)

Powered by Google App Engine
This is Rietveld 408576698