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

Side by Side 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 comment. 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 unified diff | Download patch
OLDNEW
(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 <vector>
9
10 #include "base/strings/string_piece.h"
11 #include "printing/backend/cups_printer.h"
12 #include "printing/backend/print_backend.h"
13
14 namespace printing {
15
16 // Returns the default ColorModel for |printer|.
17 ColorModel DefaultColorModel(const CupsPrinter& printer);
18
19 // Returns the set of supported ColorModels for |printer|.
20 std::vector<ColorModel> SupportedColorModels(const CupsPrinter& printer);
21
22 // Returns the default paper setting for |printer|.
23 PrinterSemanticCapsAndDefaults::Paper DefaultPaper(const CupsPrinter& printer);
24
25 // Returns the list of papers supported by the |printer|.
26 std::vector<PrinterSemanticCapsAndDefaults::Paper> SupportedPapers(
27 const CupsPrinter& printer);
28
29 // Sets |lower_bound| and |upper_bound| with the supported range of copies for
30 // |printer|.
31 void CopiesRange(const CupsPrinter& printer,
32 int* lower_bound,
33 int* upper_bound);
34
35 // Returns true if |printer| can do collation.
36 bool CollateCapable(const CupsPrinter& printer);
37
38 // Returns true if |printer| has collation enabled by default.
39 bool CollateDefault(const CupsPrinter& printer);
40
41 // Populates the |printer_info| object with attributes retrived using IPP from
42 // |printer|.
43 void CapsAndDefaultsFromPrinter(const CupsPrinter& printer,
44 PrinterSemanticCapsAndDefaults* printer_info);
45
46 } // namespace printing
47
48 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698