Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(631)

Unified Diff: printing/backend/print_backend.h

Issue 153373002: Extend PrinterSemanticCapsAndDefaults with Collate, Copies, PaperSize and Dpi capabilities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | printing/backend/print_backend.cc » ('j') | printing/backend/print_backend_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/print_backend.h
diff --git a/printing/backend/print_backend.h b/printing/backend/print_backend.h
index d698d1149d84b37391dfdb8a372fb8837e88699d..d614a682cf53a69438eb29da856b87253a07388e 100644
--- a/printing/backend/print_backend.h
+++ b/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,17 +38,33 @@ struct PRINTING_EXPORT PrinterSemanticCapsAndDefaults {
PrinterSemanticCapsAndDefaults();
~PrinterSemanticCapsAndDefaults();
- // Capabilities.
bool color_changeable;
- bool duplex_capable;
+ bool color_default;
#if defined(USE_CUPS)
ColorModel color_model;
ColorModel bw_model;
#endif
- // Current defaults.
- bool color_default;
+#if defined(OS_WIN)
+ bool collate_capable;
+ bool collate_default;
+
+ bool copies_capable;
+
+ struct Paper {
+ std::string name;
+ gfx::Size size_um;
+ };
+
+ std::vector<Paper> papers;
+ int default_paper; // -1 if no default.
+
+ std::vector<gfx::Size> dpis;
+ int default_dpi; // -1 if no default.
+#endif
+
+ bool duplex_capable;
DuplexMode duplex_default;
};
« no previous file with comments | « no previous file | printing/backend/print_backend.cc » ('j') | printing/backend/print_backend_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698