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

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

Issue 255543006: Printing on Windows via PDF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unused var warning Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698