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

Side by Side Diff: printing/emf_win.h

Issue 547203002: Delete temporarily dir for PDF to EMF conversion after all EMF files closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Sep 8 12:19:46 PDT 2014 Created 6 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
« no previous file with comments | « chrome/browser/printing/print_view_manager_base.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 9
10 #include <vector> 10 #include <vector>
(...skipping 24 matching lines...) Expand all
35 public: 35 public:
36 class Record; 36 class Record;
37 class Enumerator; 37 class Enumerator;
38 struct EnumerationContext; 38 struct EnumerationContext;
39 39
40 // Generates a virtual HDC that will record every GDI commands and compile 40 // Generates a virtual HDC that will record every GDI commands and compile
41 // it in a EMF data stream. 41 // it in a EMF data stream.
42 Emf(); 42 Emf();
43 virtual ~Emf(); 43 virtual ~Emf();
44 44
45 // Closes metafile.
46 void Close();
47
45 // Generates a new metafile that will record every GDI command, and will 48 // Generates a new metafile that will record every GDI command, and will
46 // be saved to |metafile_path|. 49 // be saved to |metafile_path|.
47 virtual bool InitToFile(const base::FilePath& metafile_path); 50 virtual bool InitToFile(const base::FilePath& metafile_path);
48 51
49 // Initializes the Emf with the data in |metafile_path|. 52 // Initializes the Emf with the data in |metafile_path|.
50 virtual bool InitFromFile(const base::FilePath& metafile_path); 53 virtual bool InitFromFile(const base::FilePath& metafile_path);
51 54
52 // Metafile methods. 55 // Metafile methods.
53 virtual bool Init() OVERRIDE; 56 virtual bool Init() OVERRIDE;
54 virtual bool InitFromData(const void* src_buffer, 57 virtual bool InitFromData(const void* src_buffer,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 std::vector<Record> items_; 201 std::vector<Record> items_;
199 202
200 EnumerationContext context_; 203 EnumerationContext context_;
201 204
202 DISALLOW_COPY_AND_ASSIGN(Enumerator); 205 DISALLOW_COPY_AND_ASSIGN(Enumerator);
203 }; 206 };
204 207
205 } // namespace printing 208 } // namespace printing
206 209
207 #endif // PRINTING_EMF_WIN_H_ 210 #endif // PRINTING_EMF_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_view_manager_base.cc ('k') | printing/emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698