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

Side by Side Diff: chrome/browser/printing/pdf_to_emf_converter.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 | « build_overrides/pdfium.gni ('k') | chrome/browser/printing/pdf_to_emf_converter.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PDF_TO_EMF_CONVERTER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_
6 #define CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ 6 #define CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 17 matching lines...) Expand all
28 GetPageCallback; 28 GetPageCallback;
29 29
30 virtual ~PdfToEmfConverter(); 30 virtual ~PdfToEmfConverter();
31 31
32 static std::unique_ptr<PdfToEmfConverter> CreateDefault(); 32 static std::unique_ptr<PdfToEmfConverter> CreateDefault();
33 33
34 // Starts conversion of PDF provided as |data|. Calls |start_callback| 34 // Starts conversion of PDF provided as |data|. Calls |start_callback|
35 // with positive |page_count|. |page_count| is 0 if initialization failed. 35 // with positive |page_count|. |page_count| is 0 if initialization failed.
36 virtual void Start(const scoped_refptr<base::RefCountedMemory>& data, 36 virtual void Start(const scoped_refptr<base::RefCountedMemory>& data,
37 const PdfRenderSettings& conversion_settings, 37 const PdfRenderSettings& conversion_settings,
38 bool print_text_with_gdi,
38 const StartCallback& start_callback) = 0; 39 const StartCallback& start_callback) = 0;
39 40
40 // Requests conversion of the page. |page_number| is 0-base page number in 41 // Requests conversion of the page. |page_number| is 0-base page number in
41 // PDF provided in Start() call. 42 // PDF provided in Start() call.
42 // Calls |get_page_callback| after conversion. |emf| of callback in not NULL 43 // Calls |get_page_callback| after conversion. |emf| of callback in not NULL
43 // if conversion succeeded. 44 // if conversion succeeded.
44 virtual void GetPage(int page_number, 45 virtual void GetPage(int page_number,
45 const GetPageCallback& get_page_callback) = 0; 46 const GetPageCallback& get_page_callback) = 0;
46 }; 47 };
47 48
48 } // namespace printing 49 } // namespace printing
49 50
50 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ 51 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_
OLDNEW
« no previous file with comments | « build_overrides/pdfium.gni ('k') | chrome/browser/printing/pdf_to_emf_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698