Make RuleBasedHostResolverProc methods to add/remove rules threadsafe.
[chromium-blink-merge.git] / printing / print_job_constants.h
blob809c2658f2d2856a893968feb9350996cfa3b760
1 // Copyright (c) 2012 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.
5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_
6 #define PRINTING_PRINT_JOB_CONSTANTS_H_
8 #include "build/build_config.h"
9 #include "printing/printing_export.h"
11 namespace printing {
13 PRINTING_EXPORT extern const char kIsFirstRequest[];
14 PRINTING_EXPORT extern const char kPreviewRequestID[];
15 PRINTING_EXPORT extern const char kPreviewInitiatorHostId[];
16 PRINTING_EXPORT extern const char kPreviewInitiatorRoutingId[];
17 PRINTING_EXPORT extern const char kPreviewUIID[];
18 PRINTING_EXPORT extern const char kSettingCapabilities[];
19 PRINTING_EXPORT extern const char kSettingCloudPrintId[];
20 PRINTING_EXPORT extern const char kSettingCloudPrintDialog[];
21 PRINTING_EXPORT extern const char kSettingCollate[];
22 PRINTING_EXPORT extern const char kSettingColor[];
23 PRINTING_EXPORT extern const char kSettingSetColorAsDefault[];
24 PRINTING_EXPORT extern const char kSettingContentHeight[];
25 PRINTING_EXPORT extern const char kSettingContentWidth[];
26 PRINTING_EXPORT extern const char kSettingCopies[];
27 PRINTING_EXPORT extern const char kSettingDeviceName[];
28 PRINTING_EXPORT extern const char kSettingDisableScaling[];
29 PRINTING_EXPORT extern const char kSettingDuplexMode[];
30 PRINTING_EXPORT extern const char kSettingFitToPageEnabled[];
31 PRINTING_EXPORT extern const char kSettingGenerateDraftData[];
32 PRINTING_EXPORT extern const char kSettingHeaderFooterEnabled[];
33 PRINTING_EXPORT extern const float kSettingHeaderFooterInterstice;
34 PRINTING_EXPORT extern const char kSettingHeaderFooterDate[];
35 PRINTING_EXPORT extern const char kSettingHeaderFooterTitle[];
36 PRINTING_EXPORT extern const char kSettingHeaderFooterURL[];
37 PRINTING_EXPORT extern const char kSettingLandscape[];
38 PRINTING_EXPORT extern const char kSettingMediaSize[];
39 PRINTING_EXPORT extern const char kSettingMediaSizeHeightMicrons[];
40 PRINTING_EXPORT extern const char kSettingMediaSizeWidthMicrons[];
41 PRINTING_EXPORT extern const char kSettingMediaSizeVendorId[];
42 PRINTING_EXPORT extern const char kSettingMediaSizeIsDefault[];
43 PRINTING_EXPORT extern const char kSettingMarginBottom[];
44 PRINTING_EXPORT extern const char kSettingMarginLeft[];
45 PRINTING_EXPORT extern const char kSettingMarginRight[];
46 PRINTING_EXPORT extern const char kSettingMarginTop[];
47 PRINTING_EXPORT extern const char kSettingMarginsCustom[];
48 PRINTING_EXPORT extern const char kSettingMarginsType[];
49 PRINTING_EXPORT extern const char kSettingPreviewPageCount[];
50 PRINTING_EXPORT extern const char kSettingPageRange[];
51 PRINTING_EXPORT extern const char kSettingPageRangeFrom[];
52 PRINTING_EXPORT extern const char kSettingPageRangeTo[];
53 PRINTING_EXPORT extern const char kSettingPageWidth[];
54 PRINTING_EXPORT extern const char kSettingPageHeight[];
55 PRINTING_EXPORT extern const char kSettingPreviewModifiable[];
56 PRINTING_EXPORT extern const char kSettingPrintToPDF[];
57 PRINTING_EXPORT extern const char kSettingPrintWithPrivet[];
58 PRINTING_EXPORT extern const char kSettingPrintWithExtension[];
59 PRINTING_EXPORT extern const char kSettingPrintableAreaHeight[];
60 PRINTING_EXPORT extern const char kSettingPrintableAreaWidth[];
61 PRINTING_EXPORT extern const char kSettingPrintableAreaX[];
62 PRINTING_EXPORT extern const char kSettingPrintableAreaY[];
63 PRINTING_EXPORT extern const char kSettingPrinterDescription[];
64 PRINTING_EXPORT extern const char kSettingPrinterName[];
65 PRINTING_EXPORT extern const char kSettingPrinterOptions[];
66 PRINTING_EXPORT extern const char kSettingTicket[];
67 PRINTING_EXPORT extern const char kSettingShouldPrintBackgrounds[];
68 PRINTING_EXPORT extern const char kSettingShouldPrintSelectionOnly[];
69 PRINTING_EXPORT extern const char kSettingShowSystemDialog[];
71 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX;
72 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
73 PRINTING_EXPORT extern const char kSettingOpenPDFInPreview[];
75 #if defined (USE_CUPS)
76 // Printer color models
77 PRINTING_EXPORT extern const char kBlack[];
78 PRINTING_EXPORT extern const char kCMYK[];
79 PRINTING_EXPORT extern const char kKCMY[];
80 PRINTING_EXPORT extern const char kCMY_K[];
81 PRINTING_EXPORT extern const char kCMY[];
82 PRINTING_EXPORT extern const char kColor[];
83 PRINTING_EXPORT extern const char kGray[];
84 PRINTING_EXPORT extern const char kGrayscale[];
85 PRINTING_EXPORT extern const char kGreyscale[];
86 PRINTING_EXPORT extern const char kMonochrome[];
87 PRINTING_EXPORT extern const char kNormal[];
88 PRINTING_EXPORT extern const char kNormalGray[];
89 PRINTING_EXPORT extern const char kRGB[];
90 PRINTING_EXPORT extern const char kRGBA[];
91 PRINTING_EXPORT extern const char kRGB16[];
92 #endif
94 // Print job duplex mode values.
95 enum DuplexMode {
96 UNKNOWN_DUPLEX_MODE = -1,
97 SIMPLEX,
98 LONG_EDGE,
99 SHORT_EDGE,
102 // Specifies the horizontal alignment of the headers and footers.
103 enum HorizontalHeaderFooterPosition {
104 LEFT,
105 CENTER,
106 RIGHT
109 // Specifies the vertical alignment of the Headers and Footers.
110 enum VerticalHeaderFooterPosition {
111 TOP,
112 BOTTOM
115 // Print job color mode values.
116 enum ColorModel {
117 UNKNOWN_COLOR_MODEL,
118 GRAY,
119 COLOR,
120 CMYK,
121 CMY,
122 KCMY,
123 CMY_K, // CMY_K represents CMY+K.
124 BLACK,
125 GRAYSCALE,
126 RGB,
127 RGB16,
128 RGBA,
129 COLORMODE_COLOR, // Used in samsung printer ppds.
130 COLORMODE_MONOCHROME, // Used in samsung printer ppds.
131 HP_COLOR_COLOR, // Used in HP color printer ppds.
132 HP_COLOR_BLACK, // Used in HP color printer ppds.
133 PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
134 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
135 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
136 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
137 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
140 // What kind of margins to use.
141 enum MarginType {
142 DEFAULT_MARGINS, // Default varies depending on headers being enabled or not
143 NO_MARGINS,
144 PRINTABLE_AREA_MARGINS,
145 CUSTOM_MARGINS,
146 MARGIN_TYPE_LAST = CUSTOM_MARGINS
149 } // namespace printing
151 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_