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

Unified Diff: printing/native_metafile_factory.h

Issue 6826027: Connect the right metafiles for print preview on Linux and Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile problems Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/native_metafile.h ('k') | printing/native_metafile_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/native_metafile_factory.h
diff --git a/printing/native_metafile_factory.h b/printing/native_metafile_factory.h
deleted file mode 100644
index 610970f2a3104cc636b94994861f9ca88d3d13b0..0000000000000000000000000000000000000000
--- a/printing/native_metafile_factory.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// 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:
- // This method returns a pointer to the appropriate NativeMetafile object
- // according to the platform. The metafile is already initialized by invoking
- // Init() on it. NULL is returned if Init() fails.
- static printing::NativeMetafile* Create();
-
- // This method returns a pointer to the appropriate NativeMetafile object
- // according to the platform. The metafile is already initialized by invoking
- // InitFromData(src_buffer,_buffer_size) on it. NULL is returned if
- // InitiFromData() fails.
- static printing::NativeMetafile* CreateFromData(const void* src_buffer,
- uint32 src_buffer_size);
-
- private:
- NativeMetafileFactory();
-
- // Retrieves a new uninitialized metafile.
- static NativeMetafile* CreateNewMetafile();
-
- DISALLOW_COPY_AND_ASSIGN(NativeMetafileFactory);
-};
-
-} // namespace printing
-
-#endif // PRINTING_NATIVE_METAFILE_FACTORY_H_
« no previous file with comments | « printing/native_metafile.h ('k') | printing/native_metafile_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698