| Index: printing/native_metafile.h
|
| ===================================================================
|
| --- printing/native_metafile.h (revision 76554)
|
| +++ printing/native_metafile.h (working copy)
|
| @@ -1,19 +1,50 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2009 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_H_
|
| #define PRINTING_NATIVE_METAFILE_H_
|
|
|
| -#include "base/basictypes.h"
|
| #include "build/build_config.h"
|
|
|
| +// Define a metafile format for the current platform. We use this platform
|
| +// independent define so we can define interfaces in platform agnostic manner.
|
| +// It is still an outstanding design issue whether we create classes on all
|
| +// platforms that have the same interface as Emf or if we change Emf to support
|
| +// multiple platforms (and rename to NativeMetafile).
|
| +
|
| +
|
| #if defined(OS_WIN)
|
| -#include "printing/native_metafile_win.h"
|
| +
|
| +#include "printing/emf_win.h"
|
| +
|
| +namespace printing {
|
| +
|
| +typedef Emf NativeMetafile;
|
| +
|
| +} // namespace printing
|
| +
|
| #elif defined(OS_MACOSX)
|
| -#include "printing/native_metafile_mac.h"
|
| +
|
| +#include "printing/pdf_metafile_mac.h"
|
| +
|
| +namespace printing {
|
| +
|
| +typedef PdfMetafile NativeMetafile;
|
| +
|
| +} // namespace printing
|
| +
|
| #elif defined(OS_POSIX)
|
| -#include "printing/native_metafile_linux.h"
|
| +
|
| +#include "printing/pdf_ps_metafile_cairo.h"
|
| +
|
| +namespace printing {
|
| +
|
| +typedef PdfPsMetafile NativeMetafile;
|
| +
|
| +} // namespace printing
|
| +
|
| #endif
|
|
|
| +
|
| #endif // PRINTING_NATIVE_METAFILE_H_
|
|
|