summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authoraayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 20:21:28 +0000
committeraayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-19 20:21:28 +0000
commit151b4f24d0746185e5254b251db88041aba257be (patch)
tree52aeccf1b9b1adcba2bf5bc9dc4936206dc01fe7 /printing
parent0b7ae67ae0d301bd909cc96e98eccbce97357bcd (diff)
downloadchromium_src-151b4f24d0746185e5254b251db88041aba257be.zip
chromium_src-151b4f24d0746185e5254b251db88041aba257be.tar.gz
chromium_src-151b4f24d0746185e5254b251db88041aba257be.tar.bz2
Added Headers and Footers support for Core Graphics on Mac
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/7544006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/print_job_constants.cc4
-rw-r--r--printing/print_job_constants.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc
index 436d656..abaf167 100644
--- a/printing/print_job_constants.cc
+++ b/printing/print_job_constants.cc
@@ -33,6 +33,10 @@ const char kSettingDuplexMode[] = "duplex";
// Option to print headers and Footers: true if selected, false if not.
const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
+// Default character spacing for text while printing headers and footers.
+// (For CoreGraphics only).
+const int kSettingHeaderFooterCharacterSpacing = 0;
+
// Default font family name for printing the headers and footers.
const char kSettingHeaderFooterFontFamilyName[] = "sans";
diff --git a/printing/print_job_constants.h b/printing/print_job_constants.h
index 89a6e64..f9188be 100644
--- a/printing/print_job_constants.h
+++ b/printing/print_job_constants.h
@@ -16,6 +16,7 @@ extern const char kSettingCopies[];
extern const char kSettingDeviceName[];
extern const char kSettingDuplexMode[];
extern const char kSettingHeaderFooterEnabled[];
+extern const int kSettingHeaderFooterCharacterSpacing;
extern const char kSettingHeaderFooterFontFamilyName[];
extern const char kSettingHeaderFooterFontName[];
extern const int kSettingHeaderFooterFontSize;