OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 // Access the current printed document. Warning: may be NULL. | 90 // Access the current printed document. Warning: may be NULL. |
91 PrintedDocument* document() const; | 91 PrintedDocument* document() const; |
92 | 92 |
93 #if defined(OS_WIN) | 93 #if defined(OS_WIN) |
94 // Let the PrintJob know the 0-based |page_number| of a given printed page. | 94 // Let the PrintJob know the 0-based |page_number| of a given printed page. |
95 void AppendPrintedPage(int page_number); | 95 void AppendPrintedPage(int page_number); |
96 | 96 |
97 void StartPdfToEmfConversion( | 97 void StartPdfToEmfConversion( |
98 const scoped_refptr<base::RefCountedMemory>& bytes, | 98 const scoped_refptr<base::RefCountedMemory>& bytes, |
99 const gfx::Size& page_size, | 99 const gfx::Size& page_size, |
100 const gfx::Rect& content_area); | 100 const gfx::Rect& content_area, |
| 101 bool print_text_with_gdi); |
101 #endif // defined(OS_WIN) | 102 #endif // defined(OS_WIN) |
102 | 103 |
103 protected: | 104 protected: |
104 ~PrintJob() override; | 105 ~PrintJob() override; |
105 | 106 |
106 private: | 107 private: |
107 // Updates |document_| to a new instance. | 108 // Updates |document_| to a new instance. |
108 void UpdatePrintedDocument(PrintedDocument* new_document); | 109 void UpdatePrintedDocument(PrintedDocument* new_document); |
109 | 110 |
110 // Processes a NOTIFY_PRINT_JOB_EVENT notification. | 111 // Processes a NOTIFY_PRINT_JOB_EVENT notification. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 scoped_refptr<PrintedDocument> document_; | 222 scoped_refptr<PrintedDocument> document_; |
222 scoped_refptr<PrintedPage> page_; | 223 scoped_refptr<PrintedPage> page_; |
223 const Type type_; | 224 const Type type_; |
224 | 225 |
225 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); | 226 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); |
226 }; | 227 }; |
227 | 228 |
228 } // namespace printing | 229 } // namespace printing |
229 | 230 |
230 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 231 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
OLD | NEW |