Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef PRINTING_NATIVE_METAFILE_FACTORY_H_ | |
| 6 #define PRINTING_NATIVE_METAFILE_FACTORY_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "printing/native_metafile.h" | |
| 10 | |
| 11 namespace printing { | |
| 12 | |
| 13 // Various printing contexts will be supported in the future (cairo, skia, emf). | |
| 14 // So this class returns the appropriate context depending on the platform and | |
| 15 // user preferences. | |
| 16 // (Note: For the moment there is only one option per platform.) | |
| 17 class NativeMetafileFactory { | |
| 18 public: | |
| 19 | |
|
James Hawkins
2011/02/28 22:26:45
nit: Remove blank line.
dpapad
2011/02/28 23:50:59
Done.
| |
| 20 // This method takes care of returning a pointer to the appropriate | |
|
James Hawkins
2011/02/28 22:26:45
s/takes care of returning/returns/
| |
| 21 // NativeMetafile object according to the platform. | |
| 22 static printing::NativeMetafile* CreateMetafile(); | |
| 23 | |
| 24 private: | |
| 25 NativeMetafileFactory(); | |
| 26 DISALLOW_COPY_AND_ASSIGN(NativeMetafileFactory); | |
| 27 }; | |
| 28 | |
| 29 } // namespace printing | |
| 30 | |
| 31 #endif // PRINTING_NATIVE_METAFILE_FACTORY_H_ | |
| OLD | NEW |