1 // Copyright 2012 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.
5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_
6 #define PRINTING_PRINT_JOB_CONSTANTS_H_
10 #include "base/component_export.h"
14 COMPONENT_EXPORT(PRINTING_BASE) extern const char kIsFirstRequest[];
15 COMPONENT_EXPORT(PRINTING_BASE)
16 extern const char kPreviewRequestID[];
17 COMPONENT_EXPORT(PRINTING_BASE) extern const char kPreviewUIID[];
18 COMPONENT_EXPORT(PRINTING_BASE)
19 extern const char kSettingCapabilities[];
20 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingCollate[];
21 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingColor[];
22 COMPONENT_EXPORT(PRINTING_BASE)
23 extern const char kSettingSetColorAsDefault[];
24 COMPONENT_EXPORT(PRINTING_BASE)
25 extern const char kSettingContentHeight[];
26 COMPONENT_EXPORT(PRINTING_BASE)
27 extern const char kSettingContentWidth[];
28 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingCopies[];
29 COMPONENT_EXPORT(PRINTING_BASE)
30 extern const char kSettingDeviceName[];
31 COMPONENT_EXPORT(PRINTING_BASE)
32 extern const char kSettingDisableScaling[];
33 COMPONENT_EXPORT(PRINTING_BASE)
34 extern const char kSettingDpiDefault[];
35 COMPONENT_EXPORT(PRINTING_BASE)
36 extern const char kSettingDpiHorizontal[];
37 COMPONENT_EXPORT(PRINTING_BASE)
38 extern const char kSettingDpiVertical[];
39 COMPONENT_EXPORT(PRINTING_BASE)
40 extern const char kSettingDuplexMode[];
41 COMPONENT_EXPORT(PRINTING_BASE)
42 extern const char kSettingFitToPageScaling[];
43 COMPONENT_EXPORT(PRINTING_BASE)
44 extern const char kSettingHeaderFooterEnabled[];
45 COMPONENT_EXPORT(PRINTING_BASE)
46 extern const float kSettingHeaderFooterInterstice;
47 COMPONENT_EXPORT(PRINTING_BASE)
48 extern const char kSettingHeaderFooterDate[];
49 COMPONENT_EXPORT(PRINTING_BASE)
50 extern const char kSettingHeaderFooterTitle[];
51 COMPONENT_EXPORT(PRINTING_BASE)
52 extern const char kSettingHeaderFooterURL[];
53 COMPONENT_EXPORT(PRINTING_BASE)
54 extern const char kSettingLandscape[];
55 COMPONENT_EXPORT(PRINTING_BASE)
56 extern const char kSettingMediaSize[];
57 COMPONENT_EXPORT(PRINTING_BASE)
58 extern const char kSettingMediaSizeHeightMicrons[];
59 COMPONENT_EXPORT(PRINTING_BASE)
60 extern const char kSettingMediaSizeWidthMicrons[];
61 COMPONENT_EXPORT(PRINTING_BASE)
62 extern const char kSettingsImageableAreaLeftMicrons[];
63 COMPONENT_EXPORT(PRINTING_BASE)
64 extern const char kSettingsImageableAreaBottomMicrons[];
65 COMPONENT_EXPORT(PRINTING_BASE)
66 extern const char kSettingsImageableAreaRightMicrons[];
67 COMPONENT_EXPORT(PRINTING_BASE)
68 extern const char kSettingsImageableAreaTopMicrons[];
69 COMPONENT_EXPORT(PRINTING_BASE)
70 extern const char kSettingMediaSizeVendorId[];
71 COMPONENT_EXPORT(PRINTING_BASE)
72 extern const char kSettingMediaSizeIsDefault[];
73 COMPONENT_EXPORT(PRINTING_BASE)
74 extern const char kSettingMarginBottom[];
75 COMPONENT_EXPORT(PRINTING_BASE)
76 extern const char kSettingMarginLeft[];
77 COMPONENT_EXPORT(PRINTING_BASE)
78 extern const char kSettingMarginRight[];
79 COMPONENT_EXPORT(PRINTING_BASE)
80 extern const char kSettingMarginTop[];
81 COMPONENT_EXPORT(PRINTING_BASE)
82 extern const char kSettingMarginsCustom[];
83 COMPONENT_EXPORT(PRINTING_BASE)
84 extern const char kSettingMarginsType[];
85 COMPONENT_EXPORT(PRINTING_BASE)
86 extern const char kSettingPreviewPageCount[];
87 COMPONENT_EXPORT(PRINTING_BASE)
88 extern const char kSettingPageRange[];
89 COMPONENT_EXPORT(PRINTING_BASE)
90 extern const char kSettingPageRangeFrom[];
91 COMPONENT_EXPORT(PRINTING_BASE)
92 extern const char kSettingPageRangeTo[];
93 COMPONENT_EXPORT(PRINTING_BASE)
94 extern const char kSettingPageWidth[];
95 COMPONENT_EXPORT(PRINTING_BASE)
96 extern const char kSettingPageHeight[];
97 COMPONENT_EXPORT(PRINTING_BASE)
98 extern const char kSettingPagesPerSheet[];
99 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingPinValue[];
100 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingPolicies[];
101 COMPONENT_EXPORT(PRINTING_BASE)
102 extern const char kSettingPreviewIsFromArc[];
103 COMPONENT_EXPORT(PRINTING_BASE)
104 extern const char kSettingPreviewModifiable[];
105 COMPONENT_EXPORT(PRINTING_BASE)
106 extern const char kSettingPrintToGoogleDrive[];
107 COMPONENT_EXPORT(PRINTING_BASE)
108 extern const char kSettingPrintableAreaHeight[];
109 COMPONENT_EXPORT(PRINTING_BASE)
110 extern const char kSettingPrintableAreaWidth[];
111 COMPONENT_EXPORT(PRINTING_BASE)
112 extern const char kSettingPrintableAreaX[];
113 COMPONENT_EXPORT(PRINTING_BASE)
114 extern const char kSettingPrintableAreaY[];
115 COMPONENT_EXPORT(PRINTING_BASE)
116 extern const char kSettingPrinterDescription[];
117 COMPONENT_EXPORT(PRINTING_BASE)
118 extern const char kSettingPrinterName[];
119 COMPONENT_EXPORT(PRINTING_BASE)
120 extern const char kSettingPrinterOptions[];
121 COMPONENT_EXPORT(PRINTING_BASE)
122 extern const char kSettingPrinterType[];
123 COMPONENT_EXPORT(PRINTING_BASE)
124 extern const char kSettingRasterizePdf[];
125 COMPONENT_EXPORT(PRINTING_BASE)
126 extern const char kSettingRasterizePdfDpi[];
127 COMPONENT_EXPORT(PRINTING_BASE)
128 extern const char kSettingScaleFactor[];
129 COMPONENT_EXPORT(PRINTING_BASE)
130 extern const char kSettingScalingType[];
131 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingTicket[];
132 COMPONENT_EXPORT(PRINTING_BASE)
133 extern const char kSettingSendUserInfo[];
134 COMPONENT_EXPORT(PRINTING_BASE)
135 extern const char kSettingShouldPrintBackgrounds[];
136 COMPONENT_EXPORT(PRINTING_BASE)
137 extern const char kSettingShouldPrintSelectionOnly[];
138 COMPONENT_EXPORT(PRINTING_BASE)
139 extern const char kSettingShowSystemDialog[];
140 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSettingUsername[];
141 COMPONENT_EXPORT(PRINTING_BASE)
142 extern const char kSettingAdvancedSettings[];
144 COMPONENT_EXPORT(PRINTING_BASE) extern const int FIRST_PAGE_INDEX;
145 COMPONENT_EXPORT(PRINTING_BASE)
146 extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
147 COMPONENT_EXPORT(PRINTING_BASE)
148 extern const char kSettingOpenPDFInPreview[];
150 COMPONENT_EXPORT(PRINTING_BASE)
151 extern const uint32_t kInvalidPageIndex;
152 COMPONENT_EXPORT(PRINTING_BASE) extern const uint32_t kMaxPageCount;
154 #if defined(USE_CUPS)
155 // Printer color models
156 COMPONENT_EXPORT(PRINTING_BASE) extern const char kBlack[];
157 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCMYK[];
158 COMPONENT_EXPORT(PRINTING_BASE) extern const char kKCMY[];
159 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCMY_K[];
160 COMPONENT_EXPORT(PRINTING_BASE) extern const char kCMY[];
161 COMPONENT_EXPORT(PRINTING_BASE) extern const char kColor[];
162 COMPONENT_EXPORT(PRINTING_BASE) extern const char kEpsonColor[];
163 COMPONENT_EXPORT(PRINTING_BASE) extern const char kEpsonMono[];
164 COMPONENT_EXPORT(PRINTING_BASE) extern const char kFullColor[];
165 COMPONENT_EXPORT(PRINTING_BASE) extern const char kGray[];
166 COMPONENT_EXPORT(PRINTING_BASE) extern const char kGrayscale[];
167 COMPONENT_EXPORT(PRINTING_BASE) extern const char kGreyscale[];
168 COMPONENT_EXPORT(PRINTING_BASE) extern const char kMono[];
169 COMPONENT_EXPORT(PRINTING_BASE) extern const char kMonochrome[];
170 COMPONENT_EXPORT(PRINTING_BASE) extern const char kNormal[];
171 COMPONENT_EXPORT(PRINTING_BASE) extern const char kNormalGray[];
172 COMPONENT_EXPORT(PRINTING_BASE) extern const char kRGB[];
173 COMPONENT_EXPORT(PRINTING_BASE) extern const char kRGBA[];
174 COMPONENT_EXPORT(PRINTING_BASE) extern const char kRGB16[];
175 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSharpCMColor[];
176 COMPONENT_EXPORT(PRINTING_BASE) extern const char kSharpCMBW[];
177 COMPONENT_EXPORT(PRINTING_BASE) extern const char kXeroxAutomatic[];
178 COMPONENT_EXPORT(PRINTING_BASE) extern const char kXeroxBW[];
181 // Specifies the horizontal alignment of the headers and footers.
182 enum HorizontalHeaderFooterPosition { LEFT, CENTER, RIGHT };
184 // Specifies the vertical alignment of the Headers and Footers.
185 enum VerticalHeaderFooterPosition { TOP, BOTTOM };
187 // Must match print_preview.ScalingType in
188 // chrome/browser/resources/print_preview/data/scaling.ts
194 SCALING_TYPE_LAST = CUSTOM
197 } // namespace printing
199 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_