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

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: rebase again, resolve conflicts Created 4 years, 4 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
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.cc ('k') | chrome/browser/printing/print_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vector> 9 #include <vector>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/printing/pdf_to_emf_converter.cc ('k') | chrome/browser/printing/print_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698