| 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..f8d4e852b304f75cca0b57a17a6a5ab2805df047
|
| --- /dev/null
|
| +++ b/printing/backend/cups_ipp_util.h
|
| @@ -0,0 +1,40 @@
|
| +// 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 "base/strings/string_piece.h"
|
| +#include "printing/backend/cups_printer.h"
|
| +#include "printing/backend/print_backend.h"
|
| +
|
| +namespace printing {
|
| +
|
| +// Populates the color_model, bw_model, color_changeable, and color_default in
|
| +// |printer_info| from |printer|.
|
| +void ExtractColor(const CupsPrinter& printer,
|
| + PrinterSemanticCapsAndDefaults* printer_info);
|
| +
|
| +// Returns the default paper setting for |printer|.
|
| +PrinterSemanticCapsAndDefaults::Paper DefaultPaper(const CupsPrinter& printer);
|
| +
|
| +// Populates papers and default_paper in |printer_info| from |printer|.
|
| +void ExtractPaper(const CupsPrinter& printer,
|
| + PrinterSemanticCapsAndDefaults* printer_info);
|
| +
|
| +// Populates copies_capable in |printer_info| from |printer|.
|
| +void ExtractCopies(const CupsPrinter& printer,
|
| + PrinterSemanticCapsAndDefaults* printer_info);
|
| +
|
| +// Populates collate_capable and collate_default in |printer_info| using
|
| +// |printer|.
|
| +void ExtractCollate(const CupsPrinter& printer,
|
| + PrinterSemanticCapsAndDefaults* printer_info);
|
| +
|
| +// Populates duplex_capable and duplex_default in |printer_info| from |printer|.
|
| +void ExtractDuplex(const CupsPrinter& printer,
|
| + PrinterSemanticCapsAndDefaults* printer_info);
|
| +} // namespace printing
|
| +
|
| +#endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_
|
|
|