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

Side by Side Diff: printing/backend/cups_ipp_util.h

Issue 2117713002: Print directly to CUPS using the IPP APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ippRead
Patch Set: format and merge Created 4 years, 4 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
« no previous file with comments | « printing/backend/cups_deleters.cc ('k') | printing/backend/cups_ipp_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_ 5 #ifndef PRINTING_BACKEND_CUPS_IPP_UTIL_H_
6 #define PRINTING_BACKEND_CUPS_IPP_UTIL_H_ 6 #define PRINTING_BACKEND_CUPS_IPP_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
11 #include "printing/backend/cups_printer.h" 11 #include "printing/backend/cups_printer.h"
12 #include "printing/backend/print_backend.h" 12 #include "printing/backend/print_backend.h"
13 13
14 namespace printing { 14 namespace printing {
15 15
16 extern const char kIppCollate[];
17 extern const char kIppCopies[];
18 extern const char kIppColor[];
19 extern const char kIppMedia[];
20 extern const char kIppDuplex[];
21
22 extern const char kCollated[];
23 extern const char kUncollated[];
24
16 // Returns the default ColorModel for |printer|. 25 // Returns the default ColorModel for |printer|.
17 ColorModel DefaultColorModel(const CupsOptionProvider& printer); 26 ColorModel DefaultColorModel(const CupsOptionProvider& printer);
18 27
19 // Returns the set of supported ColorModels for |printer|. 28 // Returns the set of supported ColorModels for |printer|.
20 std::vector<ColorModel> SupportedColorModels(const CupsOptionProvider& printer); 29 std::vector<ColorModel> SupportedColorModels(const CupsOptionProvider& printer);
21 30
22 // Returns the default paper setting for |printer|. 31 // Returns the default paper setting for |printer|.
23 PrinterSemanticCapsAndDefaults::Paper DefaultPaper( 32 PrinterSemanticCapsAndDefaults::Paper DefaultPaper(
24 const CupsOptionProvider& printer); 33 const CupsOptionProvider& printer);
25 34
(...skipping 15 matching lines...) Expand all
41 bool CollateDefault(const CupsOptionProvider& printer); 50 bool CollateDefault(const CupsOptionProvider& printer);
42 51
43 // Populates the |printer_info| object with attributes retrived using IPP from 52 // Populates the |printer_info| object with attributes retrived using IPP from
44 // |printer|. 53 // |printer|.
45 void CapsAndDefaultsFromPrinter(const CupsOptionProvider& printer, 54 void CapsAndDefaultsFromPrinter(const CupsOptionProvider& printer,
46 PrinterSemanticCapsAndDefaults* printer_info); 55 PrinterSemanticCapsAndDefaults* printer_info);
47 56
48 } // namespace printing 57 } // namespace printing
49 58
50 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_ 59 #endif // PRINTING_BACKEND_CUPS_IPP_UTIL_H_
OLDNEW
« no previous file with comments | « printing/backend/cups_deleters.cc ('k') | printing/backend/cups_ipp_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698