| Index: printing/pdf_ps_metafile_cairo.h
|
| diff --git a/printing/pdf_ps_metafile_cairo.h b/printing/pdf_ps_metafile_cairo.h
|
| index e56b64c65f8563e00baa835b70c402e003485b69..2e469f084fca35ab739a48d836e0883e3218e170 100644
|
| --- a/printing/pdf_ps_metafile_cairo.h
|
| +++ b/printing/pdf_ps_metafile_cairo.h
|
| @@ -24,19 +24,7 @@ namespace printing {
|
| // and stores rendering results in a string buffer.
|
| class PdfPsMetafile {
|
| public:
|
| - enum FileFormat {
|
| - PDF,
|
| - PS,
|
| - };
|
| -
|
| PdfPsMetafile();
|
| -
|
| - // In the renderer process, callers should also call Init(void) to see if the
|
| - // metafile can obtain all necessary rendering resources.
|
| - // In the browser process, callers should also call Init(const void*, uint32)
|
| - // to initialize the buffer |data_| to use SaveTo().
|
| - explicit PdfPsMetafile(const FileFormat& format);
|
| -
|
| ~PdfPsMetafile();
|
|
|
| // Initializes to a fresh new metafile. Returns true on success.
|
| @@ -56,8 +44,6 @@ class PdfPsMetafile {
|
| // been called this method simply calls the second version of Init.
|
| bool SetRawData(const void* src_buffer, uint32 src_buffer_size);
|
|
|
| - FileFormat GetFileFormat() const { return format_; }
|
| -
|
| // Prepares a new cairo surface/context for rendering a new page.
|
| // The unit is in point (=1/72 in).
|
| // Returns NULL when failed.
|
| @@ -105,8 +91,6 @@ class PdfPsMetafile {
|
| // Cleans up all resources.
|
| void CleanUpAll();
|
|
|
| - FileFormat format_;
|
| -
|
| // Cairo surface and context for entire PDF/PS file.
|
| cairo_surface_t* surface_;
|
| cairo_t* context_;
|
|
|