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

Unified Diff: printing/pdf_ps_metafile_cairo.h

Issue 6576058: Removing PS option from PdfPsMetafile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed obsolete constructor calls from unit tests Created 9 years, 10 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
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_;

Powered by Google App Engine
This is Rietveld 408576698