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

Side by Side Diff: printing/emf_win.h

Issue 6709009: Stop overloading Init() in NativeMetafile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | printing/emf_win.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 (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_EMF_WIN_H_ 5 #ifndef PRINTING_EMF_WIN_H_
6 #define PRINTING_EMF_WIN_H_ 6 #define PRINTING_EMF_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 class Emf : public NativeMetafile { 24 class Emf : public NativeMetafile {
25 public: 25 public:
26 class Record; 26 class Record;
27 class Enumerator; 27 class Enumerator;
28 struct EnumerationContext; 28 struct EnumerationContext;
29 29
30 virtual ~Emf(); 30 virtual ~Emf();
31 31
32 // NativeMetafile methods. 32 // NativeMetafile methods.
33 virtual bool Init() { return true; } 33 virtual bool Init() { return true; }
34 virtual bool Init(const void* src_buffer, uint32 src_buffer_size); 34 virtual bool InitFromData(const void* src_buffer, uint32 src_buffer_size);
35 35
36 virtual bool StartPage(); 36 virtual bool StartPage();
37 virtual bool FinishPage(); 37 virtual bool FinishPage();
38 virtual bool Close(); 38 virtual bool Close();
39 39
40 virtual uint32 GetDataSize() const; 40 virtual uint32 GetDataSize() const;
41 virtual bool GetData(void* buffer, uint32 size) const; 41 virtual bool GetData(void* buffer, uint32 size) const;
42 42
43 // Saves the EMF data to a file as-is. It is recommended to use the .emf file 43 // Saves the EMF data to a file as-is. It is recommended to use the .emf file
44 // extension but it is not enforced. This function synchronously writes to the 44 // extension but it is not enforced. This function synchronously writes to the
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 std::vector<Record> items_; 164 std::vector<Record> items_;
165 165
166 EnumerationContext context_; 166 EnumerationContext context_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(Enumerator); 168 DISALLOW_COPY_AND_ASSIGN(Enumerator);
169 }; 169 };
170 170
171 } // namespace printing 171 } // namespace printing
172 172
173 #endif // PRINTING_EMF_WIN_H_ 173 #endif // PRINTING_EMF_WIN_H_
OLDNEW
« no previous file with comments | « chrome/renderer/webplugin_delegate_proxy.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698