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

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 printing gyp file. 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 "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,
Lei Zhang 2016/07/13 01:08:42 Why not just return the color, and let the caller
skau 2016/07/14 20:43:05 Laziness. I've fixed it so it's more useful.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698