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

Unified Diff: printing/backend/cups_ipp_util.h

Issue 2105463002: Create a new print backend for the updated CUPS APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos. Created 4 years, 5 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 | « printing/backend/cups_deleters.cc ('k') | printing/backend/cups_ipp_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/backend/cups_ipp_util.h
diff --git a/printing/backend/cups_ipp_util.h b/printing/backend/cups_ipp_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..9887ca5664c8aa1a5f25470d98e42779c0152896
--- /dev/null
+++ b/printing/backend/cups_ipp_util.h
@@ -0,0 +1,50 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_
+#define PRINTING_BACKEND_CUPS_IPP_UTIL_H_
+
+#include <vector>
+
+#include "base/strings/string_piece.h"
+#include "printing/backend/cups_printer.h"
+#include "printing/backend/print_backend.h"
+
+namespace printing {
+
+// Returns the default ColorModel for |printer|.
+ColorModel DefaultColorModel(const CupsOptionProvider& printer);
+
+// Returns the set of supported ColorModels for |printer|.
+std::vector<ColorModel> SupportedColorModels(const CupsOptionProvider& printer);
+
+// Returns the default paper setting for |printer|.
+PrinterSemanticCapsAndDefaults::Paper DefaultPaper(
+ const CupsOptionProvider& printer);
+
+// Returns the list of papers supported by the |printer|.
+std::vector<PrinterSemanticCapsAndDefaults::Paper> SupportedPapers(
+ const CupsOptionProvider& printer);
+
+// Retrieves the supported number of copies from |printer| and writes the
+// extremities of the range into |lower_bound| and |upper_bound|. Values are
+// set to -1 if there is an error.
+void CopiesRange(const CupsOptionProvider& printer,
+ int* lower_bound,
+ int* upper_bound);
+
+// Returns true if |printer| can do collation.
+bool CollateCapable(const CupsOptionProvider& printer);
+
+// Returns true if |printer| has collation enabled by default.
+bool CollateDefault(const CupsOptionProvider& printer);
+
+// Populates the |printer_info| object with attributes retrived using IPP from
+// |printer|.
+void CapsAndDefaultsFromPrinter(const CupsOptionProvider& printer,
+ PrinterSemanticCapsAndDefaults* printer_info);
+
+} // namespace printing
+
+#endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_
« no previous file with comments | « printing/backend/cups_deleters.cc ('k') | printing/backend/cups_ipp_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698