OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_ |
| 6 #define PRINTING_BACKEND_CUPS_IPP_UTIL_H_ |
| 7 |
| 8 #include "base/strings/string_piece.h" |
| 9 #include "printing/backend/cups_printer.h" |
| 10 #include "printing/backend/print_backend.h" |
| 11 |
| 12 namespace printing { |
| 13 |
| 14 // Populates the color_model, bw_model, color_changeable, and color_default in |
| 15 // |printer_info| from |printer|. |
| 16 void ExtractColor(const CupsPrinter& printer, |
| 17 PrinterSemanticCapsAndDefaults* printer_info); |
| 18 |
| 19 // Returns the default paper setting for |printer|. |
| 20 PrinterSemanticCapsAndDefaults::Paper DefaultPaper(const CupsPrinter& printer); |
| 21 |
| 22 // Populates papers and default_paper in |printer_info| from |printer|. |
| 23 void ExtractPaper(const CupsPrinter& printer, |
| 24 PrinterSemanticCapsAndDefaults* printer_info); |
| 25 |
| 26 // Populates copies_capable in |printer_info| from |printer|. |
| 27 void ExtractCopies(const CupsPrinter& printer, |
| 28 PrinterSemanticCapsAndDefaults* printer_info); |
| 29 |
| 30 // Populates collate_capable and collate_default in |printer_info| using |
| 31 // |printer|. |
| 32 void ExtractCollate(const CupsPrinter& printer, |
| 33 PrinterSemanticCapsAndDefaults* printer_info); |
| 34 |
| 35 // Populates duplex_capable and duplex_default in |printer_info| from |printer|. |
| 36 void ExtractDuplex(const CupsPrinter& printer, |
| 37 PrinterSemanticCapsAndDefaults* printer_info); |
| 38 } // namespace printing |
| 39 |
| 40 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_ |
OLD | NEW |