Index: printing/native_metafile_factory.h |
diff --git a/printing/native_metafile_factory.h b/printing/native_metafile_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7c7675ede862a46d57e11effc47d2eebf7716f0d |
--- /dev/null |
+++ b/printing/native_metafile_factory.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef PRINTING_NATIVE_METAFILE_FACTORY_H_ |
+#define PRINTING_NATIVE_METAFILE_FACTORY_H_ |
+ |
+#include "base/basictypes.h" |
+#include "printing/native_metafile.h" |
+ |
+namespace printing { |
+ |
+// Various printing contexts will be supported in the future (cairo, skia, emf). |
+// So this class returns the appropriate context depending on the platform and |
+// user preferences. |
+// (Note: For the moment there is only one option per platform.) |
+class NativeMetafileFactory { |
+ public: |
+ |
James Hawkins
2011/02/28 22:26:45
nit: Remove blank line.
dpapad
2011/02/28 23:50:59
Done.
|
+ // 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/
|
+ // NativeMetafile object according to the platform. |
+ static printing::NativeMetafile* CreateMetafile(); |
+ |
+ private: |
+ NativeMetafileFactory(); |
+ DISALLOW_COPY_AND_ASSIGN(NativeMetafileFactory); |
+}; |
+ |
+} // namespace printing |
+ |
+#endif // PRINTING_NATIVE_METAFILE_FACTORY_H_ |