diff options
author | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-28 09:46:00 +0000 |
---|---|---|
committer | hamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-28 09:46:00 +0000 |
commit | 4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4 (patch) | |
tree | 8709d2a1c9b6afcff614c4d58b774cb2ba89ff31 /printing/pdf_ps_metafile_cairo.h | |
parent | fae8f2508f0927d4099fa78be85f089bae55575c (diff) | |
download | chromium_src-4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4.zip chromium_src-4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4.tar.gz chromium_src-4ebf5d12a9da2fe381b5bc6e53eba76a2abed8d4.tar.bz2 |
Create constant variables kPointsPerInch and kPixelsPerInch and conversion functions.
BUG=47277
TEST=units_unittest.cc
Review URL: http://codereview.chromium.org/2877001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50968 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/pdf_ps_metafile_cairo.h')
-rw-r--r-- | printing/pdf_ps_metafile_cairo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/printing/pdf_ps_metafile_cairo.h b/printing/pdf_ps_metafile_cairo.h index a5ea5be..8027188 100644 --- a/printing/pdf_ps_metafile_cairo.h +++ b/printing/pdf_ps_metafile_cairo.h @@ -77,6 +77,13 @@ class PdfPsMetafile { // This function should ONLY be called after PDF/PS file is closed. bool SaveTo(const base::FileDescriptor& fd) const; + // The hardcoded margins, in points. These values are based on 72 dpi, + // with 0.25 margins on top, left, and right, and 0.56 on bottom. + static const double kTopMargin; + static const double kRightMargin; + static const double kBottomMargin; + static const double kLeftMargin; + private: // Cleans up all resources. void CleanUpAll(); |