Printing: Remove PrintedPage on non-Windows
https://chromium-review.googlesource.com/c/chromium/src/+/804178 https://chromium-review.googlesource.com/c/chromium/src/+/770492 https://chromium-review.googlesource.com/c/chromium/src/+/704262
This commit is contained in:
parent
37d64e6a00
commit
39b30b76ea
13 changed files with 154 additions and 97 deletions
|
@ -26,7 +26,9 @@ class MetafilePlayer;
|
|||
class PdfToEmfConverter;
|
||||
class PrintJobWorker;
|
||||
class PrintedDocument;
|
||||
#if defined(OS_WIN)
|
||||
class PrintedPage;
|
||||
#endif
|
||||
class PrinterQuery;
|
||||
|
||||
// Manages the print work for a specific document. Talks to the printer through
|
||||
|
@ -204,12 +206,21 @@ class JobEventDetails : public base::RefCountedThreadSafe<JobEventDetails> {
|
|||
FAILED,
|
||||
};
|
||||
|
||||
JobEventDetails(Type type, PrintedDocument* document, PrintedPage* page);
|
||||
#if defined(OS_WIN)
|
||||
JobEventDetails(Type type,
|
||||
int job_id,
|
||||
PrintedDocument* document,
|
||||
PrintedPage* page);
|
||||
#endif
|
||||
JobEventDetails(Type type, int job_id, PrintedDocument* document);
|
||||
|
||||
// Getters.
|
||||
PrintedDocument* document() const;
|
||||
#if defined(OS_WIN)
|
||||
PrintedPage* page() const;
|
||||
#endif
|
||||
Type type() const { return type_; }
|
||||
int job_id() const { return job_id_; }
|
||||
|
||||
private:
|
||||
friend class base::RefCountedThreadSafe<JobEventDetails>;
|
||||
|
@ -217,8 +228,11 @@ class JobEventDetails : public base::RefCountedThreadSafe<JobEventDetails> {
|
|||
~JobEventDetails();
|
||||
|
||||
scoped_refptr<PrintedDocument> document_;
|
||||
#if defined(OS_WIN)
|
||||
scoped_refptr<PrintedPage> page_;
|
||||
#endif
|
||||
const Type type_;
|
||||
int job_id_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(JobEventDetails);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue