diff options
author | alekseys@chromium.org <alekseys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-05 21:44:45 +0000 |
---|---|---|
committer | alekseys@chromium.org <alekseys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-05 21:44:45 +0000 |
commit | dfb4a9d16122d903d026b8bba069ca144b8b729c (patch) | |
tree | 50fe7d4eaf1321fc9a3e15125a299367aedc7af4 /printing/backend/print_backend.h | |
parent | ed5e116cc02087bb0172ef8aeaac4cc6cf656c70 (diff) | |
download | chromium_src-dfb4a9d16122d903d026b8bba069ca144b8b729c.zip chromium_src-dfb4a9d16122d903d026b8bba069ca144b8b729c.tar.gz chromium_src-dfb4a9d16122d903d026b8bba069ca144b8b729c.tar.bz2 |
Convert local printer capabilites to CDD format to unify with cloud printers and PDF printer. This is a necessary step for adding paper size capability to local printers.
BUG=239879
Review URL: https://codereview.chromium.org/313723002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/backend/print_backend.h')
-rw-r--r-- | printing/backend/print_backend.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h index 43a2563..30e4512 100644 --- a/printing/backend/print_backend.h +++ b/printing/backend/print_backend.h @@ -38,20 +38,27 @@ struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { PrinterSemanticCapsAndDefaults(); ~PrinterSemanticCapsAndDefaults(); + bool collate_capable; + bool collate_default; + + bool copies_capable; + + bool duplex_capable; + DuplexMode duplex_default; + bool color_changeable; bool color_default; -#if defined(USE_CUPS) + // These are CUPS specific data, which soon be removed altogether. They are + // not defined under USE_CUPS to do not pull CUPS dependency into common code. +#if defined(OS_POSIX) + // TODO(alekseys): Resolve color model within printing context, do not expose + // it outside of the context. ColorModel color_model; ColorModel bw_model; #endif #if defined(OS_WIN) - bool collate_capable; - bool collate_default; - - bool copies_capable; - struct Paper { std::string name; gfx::Size size_um; @@ -63,9 +70,6 @@ struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults { std::vector<gfx::Size> dpis; gfx::Size default_dpi; #endif - - bool duplex_capable; - DuplexMode duplex_default; }; struct PRINTING_EXPORT PrinterCapsAndDefaults { |