diff options
author | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 22:25:33 +0000 |
---|---|---|
committer | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 22:25:33 +0000 |
commit | 0a2f3737c59387775e369264d6effbd1ca56630a (patch) | |
tree | ef42e69918ac96a19f4b8e87a741db13429f3713 /printing/units.cc | |
parent | cdea65da32fead5a53aa2152adb381017e693a92 (diff) | |
download | chromium_src-0a2f3737c59387775e369264d6effbd1ca56630a.zip chromium_src-0a2f3737c59387775e369264d6effbd1ca56630a.tar.gz chromium_src-0a2f3737c59387775e369264d6effbd1ca56630a.tar.bz2 |
Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for Skia
BUG=67514
TEST=
In the preview tab, note added options for printing headers and footers. Toggle with the checkbox and ensure that the correct headers and footers are displayed.
Review URL: http://codereview.chromium.org/7348010
TBR=aayushkumar@chromium.org
Review URL: http://codereview.chromium.org/7670045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/units.cc')
-rw-r--r-- | printing/units.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/printing/units.cc b/printing/units.cc index 84d78bb..976fa80 100644 --- a/printing/units.cc +++ b/printing/units.cc @@ -5,7 +5,6 @@ #include "printing/units.h" #include "base/logging.h" -#include "printing/print_job_constants.h" namespace printing { @@ -48,18 +47,4 @@ double ConvertPixelsToPointDouble(double pixels) { return ConvertUnitDouble(pixels, kPixelsPerInch, kPointsPerInch); } -double ConvertPointsToPixelDouble(double points) { - return ConvertUnitDouble(points, kPointsPerInch, kPixelsPerInch); -} - -double GetHeaderFooterSegmentWidth(double page_width) { - // Interstice is left at both ends of the page as well as between - // each region, so 1 is added. - double total_interstice_width = - (printing::kSettingHeaderFooterHorizontalRegions + 1) * - printing::kSettingHeaderFooterInterstice; - return (page_width - total_interstice_width) / - printing::kSettingHeaderFooterHorizontalRegions; -} - } // namespace printing |