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

Side by Side Diff: chrome/browser/printing/print_job.h

Issue 2114583002: Windows: Make it possible to print text with GDI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // and the end of the spooling. 89 // and the end of the spooling.
90 bool is_job_pending() const; 90 bool is_job_pending() const;
91 91
92 // Access the current printed document. Warning: may be NULL. 92 // Access the current printed document. Warning: may be NULL.
93 PrintedDocument* document() const; 93 PrintedDocument* document() const;
94 94
95 #if defined(OS_WIN) 95 #if defined(OS_WIN)
96 void StartPdfToEmfConversion( 96 void StartPdfToEmfConversion(
97 const scoped_refptr<base::RefCountedMemory>& bytes, 97 const scoped_refptr<base::RefCountedMemory>& bytes,
98 const gfx::Size& page_size, 98 const gfx::Size& page_size,
99 const gfx::Rect& content_area); 99 const gfx::Rect& content_area,
100 bool print_text_with_gdi);
100 #endif // OS_WIN 101 #endif // OS_WIN
101 102
102 protected: 103 protected:
103 ~PrintJob() override; 104 ~PrintJob() override;
104 105
105 private: 106 private:
106 // Updates document_ to a new instance. 107 // Updates document_ to a new instance.
107 void UpdatePrintedDocument(PrintedDocument* new_document); 108 void UpdatePrintedDocument(PrintedDocument* new_document);
108 109
109 // Processes a NOTIFY_PRINT_JOB_EVENT notification. 110 // Processes a NOTIFY_PRINT_JOB_EVENT notification.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 scoped_refptr<PrintedDocument> document_; 220 scoped_refptr<PrintedDocument> document_;
220 scoped_refptr<PrintedPage> page_; 221 scoped_refptr<PrintedPage> page_;
221 const Type type_; 222 const Type type_;
222 223
223 DISALLOW_COPY_AND_ASSIGN(JobEventDetails); 224 DISALLOW_COPY_AND_ASSIGN(JobEventDetails);
224 }; 225 };
225 226
226 } // namespace printing 227 } // namespace printing
227 228
228 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_ 229 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698