diff options
author | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-23 19:56:18 +0000 |
---|---|---|
committer | aayushkumar@chromium.org <aayushkumar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-23 19:56:18 +0000 |
commit | 7a9b03e386c6ca34575c1819ba0ad413a15e2d76 (patch) | |
tree | 84b7a18a28042a7d4b6d0f14e4126a666fd68c54 /printing/print_job_constants.cc | |
parent | 12dd463c5497498e49214ae186c681adcbcd445c (diff) | |
download | chromium_src-7a9b03e386c6ca34575c1819ba0ad413a15e2d76.zip chromium_src-7a9b03e386c6ca34575c1819ba0ad413a15e2d76.tar.gz chromium_src-7a9b03e386c6ca34575c1819ba0ad413a15e2d76.tar.bz2 |
Backend changes for custom margins.
The UI for margin options are hidden by default.
BUG=69337
TEST=
There is currently minimal UI for testing this. The custom margins option does nothing. You can however click the no margins option to see the page print without margins.
Review URL: http://codereview.chromium.org/7552033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97901 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_job_constants.cc')
-rw-r--r-- | printing/print_job_constants.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc index b1928e5..5e7863e 100644 --- a/printing/print_job_constants.cc +++ b/printing/print_job_constants.cc @@ -24,9 +24,19 @@ const char kSettingCollate[] = "collate"; // Print out color: true for color, false for grayscale. const char kSettingColor[] = "color"; +// Key that specifies the height of the content area of the page. +const char kSettingContentHeight[] = "contentHeight"; + +// Key that specifies the width of the content area of the page. +const char kSettingContentWidth[] = "contentWidth"; + // Number of copies. const char kSettingCopies[] = "copies"; +// Key that specifies if the default margins have been selected or not. +// True if selected, false if not. +const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected"; + // Device name: Unique printer identifier. const char kSettingDeviceName[] = "deviceName"; @@ -71,6 +81,21 @@ const char kSettingHeaderFooterURL[] = "url"; // Page orientation: true for landscape, false for portrait. const char kSettingLandscape[] = "landscape"; +// Key that specifies the bottom margin of the page. +const char kSettingMarginBottom[] = "marginBottom"; + +// Key that specifies the left margin of the page. +const char kSettingMarginLeft[] = "marginLeft"; + +// Key that specifies the right margin of the page. +const char kSettingMarginRight[] = "marginRight"; + +// Key that specifies the top margin of the page. +const char kSettingMarginTop[] = "marginTop"; + +// Key that specifies the array of custom margins as set by the user. +const char kSettingMargins[] = "margins"; + // A page range. const char kSettingPageRange[] = "pageRange"; |