diff options
author | thestig <thestig@chromium.org> | 2016-02-09 16:44:21 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-10 00:45:32 +0000 |
commit | 5e8544fc5972711c5237e3bcd8c018a0b439f4f1 (patch) | |
tree | d958330ceb3c6bad387516c4107eef42be0df779 /printing | |
parent | da238c344c410840c91669a52b8ec6cebe04ee7f (diff) | |
download | chromium_src-5e8544fc5972711c5237e3bcd8c018a0b439f4f1.zip chromium_src-5e8544fc5972711c5237e3bcd8c018a0b439f4f1.tar.gz chromium_src-5e8544fc5972711c5237e3bcd8c018a0b439f4f1.tar.bz2 |
Cleanup: Remove unused PrintSettings shrink factors.
- They have been unused for 7 years.
- The copy that is being used eventually moved to
third_party/WebKit/Source/core/page/PrintContext.cpp.
Review URL: https://codereview.chromium.org/1676953003
Cr-Commit-Position: refs/heads/master@{#374553}
Diffstat (limited to 'printing')
-rw-r--r-- | printing/print_settings.cc | 2 | ||||
-rw-r--r-- | printing/print_settings.h | 17 | ||||
-rw-r--r-- | printing/print_settings_conversion.cc | 2 |
3 files changed, 0 insertions, 21 deletions
diff --git a/printing/print_settings.cc b/printing/print_settings.cc index 7f555f0..159cfa5 100644 --- a/printing/print_settings.cc +++ b/printing/print_settings.cc @@ -131,8 +131,6 @@ PrintSettings::~PrintSettings() { void PrintSettings::Clear() { ranges_.clear(); margin_type_ = DEFAULT_MARGINS; - min_shrink_ = 1.25; - max_shrink_ = 2.; desired_dpi_ = 72; selection_only_ = false; title_ = base::string16(); diff --git a/printing/print_settings.h b/printing/print_settings.h index 08c7d56..6c4f8e7 100644 --- a/printing/print_settings.h +++ b/printing/print_settings.h @@ -143,10 +143,6 @@ class PRINTING_EXPORT PrintSettings { int desired_dpi() const { return desired_dpi_; } - double max_shrink() const { return max_shrink_; } - - double min_shrink() const { return min_shrink_; } - // Cookie generator. It is used to initialize PrintedDocument with its // associated PrintSettings, to be sure that each generated PrintedPage is // correctly associated with its corresponding PrintedDocument. @@ -157,19 +153,6 @@ class PRINTING_EXPORT PrintSettings { // This permits printing selected pages only. PageRanges ranges_; - // By imaging to a width a little wider than the available pixels, thin pages - // will be scaled down a little, matching the way they print in IE and Camino. - // This lets them use fewer sheets than they would otherwise, which is - // presumably why other browsers do this. Wide pages will be scaled down more - // than this. - double min_shrink_; - - // This number determines how small we are willing to reduce the page content - // in order to accommodate the widest line. If the page would have to be - // reduced smaller to make the widest line fit, we just clip instead (this - // behavior matches MacIE and Mozilla, at least) - double max_shrink_; - // Desired visible dots per inch rendering for output. Printing should be // scaled to ScreenDpi/dpix*desired_dpi. int desired_dpi_; diff --git a/printing/print_settings_conversion.cc b/printing/print_settings_conversion.cc index cd0c059..6200d7c 100644 --- a/printing/print_settings_conversion.cc +++ b/printing/print_settings_conversion.cc @@ -227,8 +227,6 @@ void PrintSettingsToJobSettingsDebug(const PrintSettings& settings, // common public constants. So just serialize in "debug" section. base::DictionaryValue* debug = new base::DictionaryValue; job_settings->Set("debug", debug); - debug->SetDouble("minShrink", settings.min_shrink()); - debug->SetDouble("maxShrink", settings.max_shrink()); debug->SetInteger("desiredDpi", settings.desired_dpi()); debug->SetInteger("dpi", settings.dpi()); debug->SetInteger("deviceUnitsPerInch", settings.device_units_per_inch()); |