diff options
author | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 22:04:58 +0000 |
---|---|---|
committer | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-17 22:04:58 +0000 |
commit | 540ac80c83db3f4865d007288a4f1b8524e0aa86 (patch) | |
tree | 949f85a92cd501baef2827c063e3476ae27bb97c /printing/units.h | |
parent | 6895bf926cba01ef455bb7327703aa5378a46488 (diff) | |
download | chromium_src-540ac80c83db3f4865d007288a4f1b8524e0aa86.zip chromium_src-540ac80c83db3f4865d007288a4f1b8524e0aa86.tar.gz chromium_src-540ac80c83db3f4865d007288a4f1b8524e0aa86.tar.bz2 |
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
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/units.h')
-rw-r--r-- | printing/units.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/printing/units.h b/printing/units.h index cc61241..bd6d67a 100644 --- a/printing/units.h +++ b/printing/units.h @@ -36,6 +36,13 @@ int ConvertPixelsToPoint(int pixels); // Converts from 1 pixel to 1 point using doubles. double ConvertPixelsToPointDouble(double pixels); +// Converts from 1 point to 1 pixel using doubles. +double ConvertPointsToPixelDouble(double points); + +// Splits the horizontal width equally into segments with an interstice +// between each segment. Returns the width of a segment. +double GetHeaderFooterSegmentWidth(double page_width); + } // namespace printing #endif // PRINTING_UNITS_H_ |