summaryrefslogtreecommitdiffstats
path: root/printing/print_settings.h
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 16:26:17 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-12 16:26:17 +0000
commit355e36f7b919a9dd3cfc1244cf91a497e301ffcd (patch)
treec9f908010b5c1bc590df7e9c322725883a9b1dbd /printing/print_settings.h
parent5db5a73deaf4480881ba91fdf98c443dc63bf62e (diff)
downloadchromium_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_settings.h')
-rw-r--r--printing/print_settings.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/printing/print_settings.h b/printing/print_settings.h
index 4e40231..6101684 100644
--- a/printing/print_settings.h
+++ b/printing/print_settings.h
@@ -15,6 +15,16 @@
namespace printing {
+// Returns true if color model is selected.
+bool isColorModelSelected(int model);
+
+#if defined (USE_CUPS)
+ // Get the color model setting name and value for the |color_mode|.
+ void GetColorModelForMode(int color_mode,
+ std::string* color_setting_name,
+ std::string* color_value);
+#endif
+
// OS-independent print settings.
class PRINTING_EXPORT PrintSettings {
public: