blob: d1543c709d4d6cf66abde2a3f374a55abfd44ef8 [file] [log] [blame]
// 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.
static printing::NativeMetafile* CreateMetafile();
private:
NativeMetafileFactory();
DISALLOW_COPY_AND_ASSIGN(NativeMetafileFactory);
};
} // namespace printing
#endif // PRINTING_NATIVE_METAFILE_FACTORY_H_