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

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

Issue 2640033005: Substitute boolean GDI printing for a mode type (Closed)
Patch Set: Fix nits Created 3 years, 10 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 | « no previous file | 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 13 matching lines...) Expand all
24 std::unique_ptr<MetafilePlayer> file)>; 24 std::unique_ptr<MetafilePlayer> file)>;
25 25
26 virtual ~PdfConverter(); 26 virtual ~PdfConverter();
27 27
28 static std::unique_ptr<PdfConverter> CreatePdfToEmfConverter(); 28 static std::unique_ptr<PdfConverter> CreatePdfToEmfConverter();
29 29
30 // Starts conversion of PDF provided as |data|. Calls |start_callback| 30 // Starts conversion of PDF provided as |data|. Calls |start_callback|
31 // with positive |page_count|. |page_count| is 0 if initialization failed. 31 // with positive |page_count|. |page_count| is 0 if initialization failed.
32 virtual void Start(const scoped_refptr<base::RefCountedMemory>& data, 32 virtual void Start(const scoped_refptr<base::RefCountedMemory>& data,
33 const PdfRenderSettings& conversion_settings, 33 const PdfRenderSettings& conversion_settings,
34 bool print_text_with_gdi,
35 const StartCallback& start_callback) = 0; 34 const StartCallback& start_callback) = 0;
36 35
37 // Requests conversion of the page. |page_number| is 0-base page number in 36 // Requests conversion of the page. |page_number| is 0-base page number in
38 // PDF provided in Start() call. 37 // PDF provided in Start() call.
39 // Calls |get_page_callback| after conversion. |emf| of callback in not NULL 38 // Calls |get_page_callback| after conversion. |emf| of callback in not NULL
40 // if conversion succeeded. 39 // if conversion succeeded.
41 virtual void GetPage(int page_number, 40 virtual void GetPage(int page_number,
42 const GetPageCallback& get_page_callback) = 0; 41 const GetPageCallback& get_page_callback) = 0;
43 }; 42 };
44 43
45 } // namespace printing 44 } // namespace printing
46 45
47 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ 46 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/pdf_to_emf_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698