diff options
author | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 16:26:17 +0000 |
---|---|---|
committer | kmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 16:26:17 +0000 |
commit | 355e36f7b919a9dd3cfc1244cf91a497e301ffcd (patch) | |
tree | c9f908010b5c1bc590df7e9c322725883a9b1dbd /printing/print_job_constants.cc | |
parent | 5db5a73deaf4480881ba91fdf98c443dc63bf62e (diff) | |
download | chromium_src-355e36f7b919a9dd3cfc1244cf91a497e301ffcd.zip chromium_src-355e36f7b919a9dd3cfc1244cf91a497e301ffcd.tar.gz chromium_src-355e36f7b919a9dd3cfc1244cf91a497e301ffcd.tar.bz2 |
PrintPreview: Fix printer color settings issues based on printer ppd/schema information.
Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings.
BUG=93811, 93490, 87344, 96658, 98768
TEST= Please refer to bug description.
Review URL: http://codereview.chromium.org/8138020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105087 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/print_job_constants.cc')
-rw-r--r-- | printing/print_job_constants.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc index 3efb488..5420e74 100644 --- a/printing/print_job_constants.cc +++ b/printing/print_job_constants.cc @@ -121,4 +121,22 @@ const char kSettingPrintToPDF[] = "printToPDF"; const int FIRST_PAGE_INDEX = 0; const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; +#if defined (USE_CUPS) +const char kBlack[] = "Black"; +const char kCMYK[] = "CMYK"; +const char kKCMY[] = "KCMY"; +const char kCMY_K[] = "CMY+K"; +const char kCMY[] = "CMY"; +const char kColor[] = "Color"; +const char kGray[] = "Gray"; +const char kGrayscale[] = "Grayscale"; +const char kGreyscale[] = "Greyscale"; +const char kMonochrome[] = "Monochrome"; +const char kNormal[] = "Normal"; +const char kNormalGray[] = "Normal.Gray"; +const char kRGB[] = "RGB"; +const char kRGBA[] = "RGBA"; +const char kRGB16[] = "RGB16"; +#endif + } // namespace printing |