| 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..3bed66f512910bf4b4e59924795af6af354c3c16
|
| --- /dev/null
|
| +++ b/printing/backend/cups_ipp_util.h
|
| @@ -0,0 +1,48 @@
|
| +// 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 CupsPrinter& printer);
|
| +
|
| +// Returns the set of supported ColorModels for |printer|.
|
| +std::vector<ColorModel> SupportedColorModels(const CupsPrinter& printer);
|
| +
|
| +// Returns the default paper setting for |printer|.
|
| +PrinterSemanticCapsAndDefaults::Paper DefaultPaper(const CupsPrinter& printer);
|
| +
|
| +// Returns the list of papers supported by the |printer|.
|
| +std::vector<PrinterSemanticCapsAndDefaults::Paper> SupportedPapers(
|
| + const CupsPrinter& printer);
|
| +
|
| +// Sets |lower_bound| and |upper_bound| with the supported range of copies for
|
| +// |printer|.
|
| +void CopiesRange(const CupsPrinter& printer,
|
| + int* lower_bound,
|
| + int* upper_bound);
|
| +
|
| +// Returns true if |printer| can do collation.
|
| +bool CollateCapable(const CupsPrinter& printer);
|
| +
|
| +// Returns true if |printer| has collation enabled by default.
|
| +bool CollateDefault(const CupsPrinter& printer);
|
| +
|
| +// Populates the |printer_info| object with attributes retrived using IPP from
|
| +// |printer|.
|
| +void CapsAndDefaultsFromPrinter(const CupsPrinter& printer,
|
| + PrinterSemanticCapsAndDefaults* printer_info);
|
| +
|
| +} // namespace printing
|
| +
|
| +#endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_
|
|
|