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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool print_text_with_gdi); |
102 | 102 |
103 void StartPdfToPostScriptConversion( | 103 void StartPdfToPostScriptConversion( |
104 const scoped_refptr<base::RefCountedMemory>& bytes, | 104 const scoped_refptr<base::RefCountedMemory>& bytes, |
105 const gfx::Rect& content_area, | 105 const gfx::Rect& content_area, |
106 const gfx::Point& physical_offset, | 106 const gfx::Point& physical_offset, |
107 bool ps_level2); | 107 bool ps_level2); |
| 108 |
| 109 void StartPdfToTextConversion( |
| 110 const scoped_refptr<base::RefCountedMemory>& bytes, |
| 111 const gfx::Size& page_size); |
108 #endif // defined(OS_WIN) | 112 #endif // defined(OS_WIN) |
109 | 113 |
110 protected: | 114 protected: |
111 ~PrintJob() override; | 115 ~PrintJob() override; |
112 | 116 |
113 private: | 117 private: |
114 // Updates |document_| to a new instance. | 118 // Updates |document_| to a new instance. |
115 void UpdatePrintedDocument(PrintedDocument* new_document); | 119 void UpdatePrintedDocument(PrintedDocument* new_document); |
116 | 120 |
117 // Processes a NOTIFY_PRINT_JOB_EVENT notification. | 121 // Processes a NOTIFY_PRINT_JOB_EVENT notification. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 scoped_refptr<PrintedPage> page_; | 237 scoped_refptr<PrintedPage> page_; |
234 const Type type_; | 238 const Type type_; |
235 int job_id_; | 239 int job_id_; |
236 | 240 |
237 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); | 241 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); |
238 }; | 242 }; |
239 | 243 |
240 } // namespace printing | 244 } // namespace printing |
241 | 245 |
242 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ | 246 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ |
OLD | NEW |