diff options
Diffstat (limited to 'printing')
-rw-r--r-- | printing/backend/cups_helper.cc | 2 | ||||
-rw-r--r-- | printing/backend/print_backend.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/printing/backend/cups_helper.cc b/printing/backend/cups_helper.cc index eb49ca4..74df558 100644 --- a/printing/backend/cups_helper.cc +++ b/printing/backend/cups_helper.cc @@ -386,6 +386,8 @@ bool ParsePpdCapabilities( (cm_black != UNKNOWN_COLOR_MODEL) && (cm_color != cm_black)); caps.color_default = is_color; + caps.color_model = cm_color; + caps.bw_model = cm_black; ppdClose(ppd); base::DeleteFile(ppd_file_path, false); diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h index 506bf07..1d058bf 100644 --- a/printing/backend/print_backend.h +++ b/printing/backend/print_backend.h @@ -42,6 +42,11 @@ struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { bool color_changeable; bool duplex_capable; +#if defined(USE_CUPS) + ColorModel color_model; + ColorModel bw_model; +#endif + // Current defaults. bool color_default; DuplexMode duplex_default; |