Make Print API work on Windows.
This commit is contained in:
parent
ca5ee0fc81
commit
ff87592722
15 changed files with 1294 additions and 0 deletions
|
@ -90,6 +90,19 @@ class PrintJob : public PrintJobWorkerOwner,
|
|||
// Access the current printed document. Warning: may be NULL.
|
||||
PrintedDocument* document() const;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
void StartPdfToEmfConversion(
|
||||
const scoped_refptr<base::RefCountedMemory>& bytes,
|
||||
const gfx::Size& page_size,
|
||||
const gfx::Rect& content_area);
|
||||
|
||||
void OnPdfToEmfStarted(int page_count);
|
||||
void OnPdfToEmfPageConverted(int page_number,
|
||||
float scale_factor,
|
||||
scoped_ptr<MetafilePlayer> emf);
|
||||
|
||||
#endif // OS_WIN
|
||||
|
||||
protected:
|
||||
virtual ~PrintJob();
|
||||
|
||||
|
@ -137,6 +150,11 @@ class PrintJob : public PrintJobWorkerOwner,
|
|||
// the notified calls Cancel() again.
|
||||
bool is_canceling_;
|
||||
|
||||
#if defined(OS_WIN)
|
||||
class PdfToEmfState;
|
||||
scoped_ptr<PdfToEmfState> ptd_to_emf_state_;
|
||||
#endif // OS_WIN
|
||||
|
||||
// Used at shutdown so that we can quit a nested message loop.
|
||||
base::WeakPtrFactory<PrintJob> quit_factory_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue