diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 03:04:47 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-29 03:04:47 +0000 |
commit | 7bd80241b862451b05566797f4ef6debf98f5c45 (patch) | |
tree | 193c1ec3e329486299774d5195ee71037fdb22c0 /printing | |
parent | 8243d0bef6f5c60fef06f222d059393ad96b3ce6 (diff) | |
download | chromium_src-7bd80241b862451b05566797f4ef6debf98f5c45.zip chromium_src-7bd80241b862451b05566797f4ef6debf98f5c45.tar.gz chromium_src-7bd80241b862451b05566797f4ef6debf98f5c45.tar.bz2 |
Print Preview: Remove unused draft mode code.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7275030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90919 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/emf_win.h | 2 | ||||
-rw-r--r-- | printing/metafile.h | 5 | ||||
-rw-r--r-- | printing/pdf_metafile_cairo_linux.h | 2 | ||||
-rw-r--r-- | printing/pdf_metafile_cg_mac.h | 2 | ||||
-rw-r--r-- | printing/pdf_metafile_skia.cc | 3 | ||||
-rw-r--r-- | printing/pdf_metafile_skia.h | 2 | ||||
-rw-r--r-- | printing/print_job_constants.cc | 3 | ||||
-rw-r--r-- | printing/print_job_constants.h | 1 |
8 files changed, 0 insertions, 20 deletions
diff --git a/printing/emf_win.h b/printing/emf_win.h index 7b8dab6..f7e0ed5 100644 --- a/printing/emf_win.h +++ b/printing/emf_win.h @@ -84,8 +84,6 @@ class Emf : public Metafile { return emf_; } - virtual void set_draft(bool /* draft */) const {} - private: FRIEND_TEST_ALL_PREFIXES(EmfTest, DC); FRIEND_TEST_ALL_PREFIXES(EmfPrintingTest, PageBreak); diff --git a/printing/metafile.h b/printing/metafile.h index 2ec1d78..84c0556 100644 --- a/printing/metafile.h +++ b/printing/metafile.h @@ -143,11 +143,6 @@ class Metafile { // Returns true if writing succeeded. virtual bool SaveToFD(const base::FileDescriptor& fd) const = 0; #endif // if defined(OS_CHROMEOS) - - // Sets the flag to create a draft metafile. - // NOTE: Draft metafile does not include font embedding, compression, etc. - // This is currently used only in print preview workflow. - virtual void set_draft(bool draft) const = 0; }; } // namespace printing diff --git a/printing/pdf_metafile_cairo_linux.h b/printing/pdf_metafile_cairo_linux.h index 7919980..6f07ae0 100644 --- a/printing/pdf_metafile_cairo_linux.h +++ b/printing/pdf_metafile_cairo_linux.h @@ -60,8 +60,6 @@ class PdfMetafileCairo : public Metafile { virtual bool SaveToFD(const base::FileDescriptor& fd) const; #endif // if defined(OS_CHROMEOS) - virtual void set_draft(bool /* draft */) const {} - private: // Cleans up all resources. void CleanUpAll(); diff --git a/printing/pdf_metafile_cg_mac.h b/printing/pdf_metafile_cg_mac.h index 303cfd5..5a7f56d 100644 --- a/printing/pdf_metafile_cg_mac.h +++ b/printing/pdf_metafile_cg_mac.h @@ -65,8 +65,6 @@ class PdfMetafileCg : public Metafile, public base::ThreadChecker { bool center_horizontally, bool center_vertically) const; - virtual void set_draft(bool /* draft */) const {} - private: // Returns a CGPDFDocumentRef version of pdf_data_. CGPDFDocumentRef GetPDFDocument() const; diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc index 0ef33f2..69cae9e 100644 --- a/printing/pdf_metafile_skia.cc +++ b/printing/pdf_metafile_skia.cc @@ -236,7 +236,4 @@ PdfMetafileSkia::PdfMetafileSkia() : data_(new PdfMetafileSkiaData), draft_(false) {} -void PdfMetafileSkia::set_draft(bool draft) const { - draft_ = draft; -} } // namespace printing diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h index 2b8c7c1..c28cd08 100644 --- a/printing/pdf_metafile_skia.h +++ b/printing/pdf_metafile_skia.h @@ -68,8 +68,6 @@ class PdfMetafileSkia : public Metafile { virtual bool SaveToFD(const base::FileDescriptor& fd) const; #endif // if defined(OS_CHROMEOS) - virtual void set_draft(bool draft) const; - private: scoped_ptr<PdfMetafileSkiaData> data_; diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc index 5f72252..d8eb0ce 100644 --- a/printing/print_job_constants.cc +++ b/printing/print_job_constants.cc @@ -39,7 +39,4 @@ const char kSettingPrinterName[] = "printerName"; // Print to PDF option: true if selected, false if not. const char kSettingPrintToPDF[] = "printToPDF"; -// True when draft preview document is required. -const char kSettingDraftDocument[] = "draftDocument"; - } // namespace printing diff --git a/printing/print_job_constants.h b/printing/print_job_constants.h index 8ee5e7f..0f43b7f 100644 --- a/printing/print_job_constants.h +++ b/printing/print_job_constants.h @@ -11,7 +11,6 @@ extern const char kSettingCollate[]; extern const char kSettingColor[]; extern const char kSettingCopies[]; extern const char kSettingDeviceName[]; -extern const char kSettingDraftDocument[]; extern const char kSettingDuplexMode[]; extern const char kSettingLandscape[]; extern const char kSettingPageRange[]; |