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

Side by Side Diff: printing/metafile.h

Issue 7799003: Add printing.dll to the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « printing/image.h ('k') | printing/metafile_skia_wrapper.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 PRINTING_METAFILE_H_ 5 #ifndef PRINTING_METAFILE_H_
6 #define PRINTING_METAFILE_H_ 6 #define PRINTING_METAFILE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "printing/printing_export.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 12
12 #if defined(OS_WIN) 13 #if defined(OS_WIN)
13 #include <windows.h> 14 #include <windows.h>
14 #elif defined(OS_MACOSX) 15 #elif defined(OS_MACOSX)
15 #include <ApplicationServices/ApplicationServices.h> 16 #include <ApplicationServices/ApplicationServices.h>
16 #include <CoreFoundation/CoreFoundation.h> 17 #include <CoreFoundation/CoreFoundation.h>
17 #include "base/mac/scoped_cftyperef.h" 18 #include "base/mac/scoped_cftyperef.h"
18 #endif 19 #endif
19 20
(...skipping 10 matching lines...) Expand all
30 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
31 namespace base { 32 namespace base {
32 struct FileDescriptor; 33 struct FileDescriptor;
33 } 34 }
34 #endif 35 #endif
35 36
36 namespace printing { 37 namespace printing {
37 38
38 // This class creates a graphics context that renders into a data stream 39 // This class creates a graphics context that renders into a data stream
39 // (usually PDF or EMF). 40 // (usually PDF or EMF).
40 class Metafile { 41 class PRINTING_EXPORT Metafile {
41 public: 42 public:
42 virtual ~Metafile() {} 43 virtual ~Metafile() {}
43 44
44 // Initializes a fresh new metafile for rendering. Returns false on failure. 45 // Initializes a fresh new metafile for rendering. Returns false on failure.
45 // Note: It should only be called from within the renderer process to allocate 46 // Note: It should only be called from within the renderer process to allocate
46 // rendering resources. 47 // rendering resources.
47 virtual bool Init() = 0; 48 virtual bool Init() = 0;
48 49
49 // Initializes the metafile with the data in |src_buffer|. Returns true 50 // Initializes the metafile with the data in |src_buffer|. Returns true
50 // on success. 51 // on success.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Saves the underlying data to the file associated with fd. This function 142 // Saves the underlying data to the file associated with fd. This function
142 // should ONLY be called after the metafile is closed. 143 // should ONLY be called after the metafile is closed.
143 // Returns true if writing succeeded. 144 // Returns true if writing succeeded.
144 virtual bool SaveToFD(const base::FileDescriptor& fd) const = 0; 145 virtual bool SaveToFD(const base::FileDescriptor& fd) const = 0;
145 #endif // if defined(OS_CHROMEOS) 146 #endif // if defined(OS_CHROMEOS)
146 }; 147 };
147 148
148 } // namespace printing 149 } // namespace printing
149 150
150 #endif // PRINTING_METAFILE_H_ 151 #endif // PRINTING_METAFILE_H_
OLDNEW
« no previous file with comments | « printing/image.h ('k') | printing/metafile_skia_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698