[M120 Migration][VD] Remove accessing oom_score_adj in zygote process
[platform/framework/web/chromium-efl.git] / printing / print_job_constants_cups.h
1 // Copyright 2023 The Chromium Authors
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_PRINT_JOB_CONSTANTS_CUPS_H_
6 #define PRINTING_PRINT_JOB_CONSTANTS_CUPS_H_
7
8 #include "base/component_export.h"
9 #include "build/build_config.h"
10 #include "printing/buildflags/buildflags.h"
11
12 #if BUILDFLAG(IS_MAC)
13 #include "base/containers/span.h"
14 #include "base/strings/string_piece.h"
15 #endif
16
17 #if !BUILDFLAG(USE_CUPS)
18 #error "CUPS must be enabled."
19 #endif
20
21 namespace printing {
22
23 // Variations of identifier used for specifying printer color model.
24 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSColorMode[];
25 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSColorModel[];
26 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSPrintoutMode[];
27 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSProcessColorModel[];
28 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSBrotherMonoColor[];
29 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSBrotherPrintQuality[];
30 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSCanonCNColorMode[];
31 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSCanonCNIJGrayScale[];
32 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSEpsonInk[];
33 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSHpColorMode[];
34 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSHpPjlColorAsGray[];
35 COMPONENT_EXPORT(PRINTING_BASE)
36 extern const char kCUPSKonicaMinoltaSelectColor[];
37 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSLexmarkBLW[];
38 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSOkiControl[];
39 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSSharpARCMode[];
40 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSXeroxXROutputColor[];
41 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCUPSXeroxXRXColor[];
42
43 // Variations of identifier used for specifying printer color model choice.
44 COMPONENT_EXPORT(PRINTING_BASE) extern const char kAuto[];
45 COMPONENT_EXPORT(PRINTING_BASE) extern const char kBlack[];
46 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCMYK[];
47 COMPONENT_EXPORT(PRINTING_BASE) extern const char kKCMY[];
48 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCMY_K[];
49 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCMY[];
50 COMPONENT_EXPORT(PRINTING_BASE) extern const char kColor[];
51 COMPONENT_EXPORT(PRINTING_BASE) extern const char kDraftGray[];
52 COMPONENT_EXPORT(PRINTING_BASE) extern const char kEpsonColor[];
53 COMPONENT_EXPORT(PRINTING_BASE) extern const char kEpsonMono[];
54 COMPONENT_EXPORT(PRINTING_BASE) extern const char kFullColor[];
55 COMPONENT_EXPORT(PRINTING_BASE) extern const char kGray[];
56 COMPONENT_EXPORT(PRINTING_BASE) extern const char kGrayscale[];
57 COMPONENT_EXPORT(PRINTING_BASE) extern const char kGreyscale[];
58 COMPONENT_EXPORT(PRINTING_BASE) extern const char kHighGray[];
59 COMPONENT_EXPORT(PRINTING_BASE) extern const char kHpColorPrint[];
60 COMPONENT_EXPORT(PRINTING_BASE) extern const char kHpGrayscalePrint[];
61 COMPONENT_EXPORT(PRINTING_BASE) extern const char kHpPjlColorAsGrayNo[];
62 COMPONENT_EXPORT(PRINTING_BASE) extern const char kHpPjlColorAsGrayYes[];
63 COMPONENT_EXPORT(PRINTING_BASE) extern const char kKonicaMinoltaColor[];
64 COMPONENT_EXPORT(PRINTING_BASE) extern const char kKonicaMinoltaGrayscale[];
65 COMPONENT_EXPORT(PRINTING_BASE) extern const char kLexmarkBLWFalse[];
66 COMPONENT_EXPORT(PRINTING_BASE) extern const char kLexmarkBLWTrue[];
67 COMPONENT_EXPORT(PRINTING_BASE) extern const char kMono[];
68 COMPONENT_EXPORT(PRINTING_BASE) extern const char kMonochrome[];
69 COMPONENT_EXPORT(PRINTING_BASE) extern const char kNormal[];
70 COMPONENT_EXPORT(PRINTING_BASE) extern const char kNormalGray[];
71 COMPONENT_EXPORT(PRINTING_BASE) extern const char kOne[];
72 COMPONENT_EXPORT(PRINTING_BASE) extern const char kPrintAsColor[];
73 COMPONENT_EXPORT(PRINTING_BASE) extern const char kPrintAsGrayscale[];
74 COMPONENT_EXPORT(PRINTING_BASE) extern const char kRGB[];
75 COMPONENT_EXPORT(PRINTING_BASE) extern const char kRGBA[];
76 COMPONENT_EXPORT(PRINTING_BASE) extern const char kRGB16[];
77 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSamsungColorFalse[];
78 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSamsungColorTrue[];
79 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSharpCMColor[];
80 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSharpCMBW[];
81 COMPONENT_EXPORT(PRINTING_BASE) extern const char kXeroxAutomatic[];
82 COMPONENT_EXPORT(PRINTING_BASE) extern const char kXeroxBW[];
83 COMPONENT_EXPORT(PRINTING_BASE) extern const char kZero[];
84
85 #if BUILDFLAG(IS_MAC)
86 // Represents set identifier used to specifier to select the color model for a
87 // particular printer manufacturer, and the corresponding names used with that
88 // to choose either black and white or color printing.
89 struct COMPONENT_EXPORT(PRINTING_BASE) PpdColorSetting {
90   constexpr PpdColorSetting(base::StringPiece name,
91                             base::StringPiece bw,
92                             base::StringPiece color)
93       : name(name), bw(bw), color(color) {}
94
95   base::StringPiece name;
96   base::StringPiece bw;
97   base::StringPiece color;
98 };
99
100 COMPONENT_EXPORT(PRINTING_BASE)
101 base::span<const PpdColorSetting> GetKnownPpdColorSettings();
102 #endif
103
104 }  // namespace printing
105
106 #endif  // PRINTING_PRINT_JOB_CONSTANTS_CUPS_H_