Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ | |
| 6 #define CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "base/memory/ref_counted_memory.h" | |
| 10 | |
| 11 namespace base { | |
| 12 class FilePath; | |
| 13 } | |
| 14 | |
| 15 namespace gfx { | |
| 16 class Size; | |
|
Lei Zhang
2014/05/20 03:39:29
nit: not needed
scottmg
2014/05/20 17:16:24
Done.
| |
| 17 } | |
| 18 | |
| 19 namespace printing { | |
| 20 class PdfRenderSettings; | |
| 21 } | |
| 22 | |
| 23 namespace printing { | |
| 24 | |
| 25 class PdfToEmfConverter { | |
| 26 public: | |
| 27 // Callback for when the PDF is converted to an EMF. | |
| 28 typedef base::Callback<void(double /*scale_factor*/, | |
| 29 const std::vector<base::FilePath>& /*emf_files*/)> | |
| 30 ResultCallback; | |
| 31 virtual ~PdfToEmfConverter() {} | |
| 32 | |
| 33 static scoped_ptr<PdfToEmfConverter> CreateDefault(); | |
| 34 | |
| 35 virtual void Start(base::RefCountedMemory* data, | |
| 36 const printing::PdfRenderSettings& conversion_settings, | |
| 37 const ResultCallback& callback) = 0; | |
| 38 }; | |
| 39 | |
| 40 } // namespace printing | |
| 41 | |
| 42 #endif // CHROME_BROWSER_PRINTING_PDF_TO_EMF_CONVERTER_H_ | |
| OLD | NEW |