diff options
Diffstat (limited to 'chromium/printing/backend/print_backend.h')
-rw-r--r-- | chromium/printing/backend/print_backend.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/chromium/printing/backend/print_backend.h b/chromium/printing/backend/print_backend.h index d698d1149d8..e03ef42e37c 100644 --- a/chromium/printing/backend/print_backend.h +++ b/chromium/printing/backend/print_backend.h @@ -12,6 +12,7 @@ #include "base/memory/ref_counted.h" #include "printing/print_job_constants.h" #include "printing/printing_export.h" +#include "ui/gfx/geometry/size.h" namespace base { class DictionaryValue; @@ -37,18 +38,29 @@ struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { PrinterSemanticCapsAndDefaults(); ~PrinterSemanticCapsAndDefaults(); - // Capabilities. - bool color_changeable; + bool collate_capable; + bool collate_default; + + bool copies_capable; + bool duplex_capable; + DuplexMode duplex_default; -#if defined(USE_CUPS) + bool color_changeable; + bool color_default; ColorModel color_model; ColorModel bw_model; -#endif - // Current defaults. - bool color_default; - DuplexMode duplex_default; + struct Paper { + std::string display_name; + std::string vendor_id; + gfx::Size size_um; + }; + std::vector<Paper> papers; + Paper default_paper; + + std::vector<gfx::Size> dpis; + gfx::Size default_dpi; }; struct PRINTING_EXPORT PrinterCapsAndDefaults { |