cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / printing / print_job_constants.h
blob2e5da0186178b261fbf95b608e3e7fb46b4cd744
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 kSettingDistillPageEnabled[];
30 PRINTING_EXPORT extern const char kSettingDuplexMode[];
31 PRINTING_EXPORT extern const char kSettingFitToPageEnabled[];
32 PRINTING_EXPORT extern const char kSettingGenerateDraftData[];
33 PRINTING_EXPORT extern const char kSettingHeaderFooterEnabled[];
34 PRINTING_EXPORT extern const float kSettingHeaderFooterInterstice;
35 PRINTING_EXPORT extern const char kSettingHeaderFooterDate[];
36 PRINTING_EXPORT extern const char kSettingHeaderFooterTitle[];
37 PRINTING_EXPORT extern const char kSettingHeaderFooterURL[];
38 PRINTING_EXPORT extern const char kSettingLandscape[];
39 PRINTING_EXPORT extern const char kSettingMediaSize[];
40 PRINTING_EXPORT extern const char kSettingMediaSizeHeightMicrons[];
41 PRINTING_EXPORT extern const char kSettingMediaSizeWidthMicrons[];
42 PRINTING_EXPORT extern const char kSettingMediaSizeVendorId[];
43 PRINTING_EXPORT extern const char kSettingMediaSizeIsDefault[];
44 PRINTING_EXPORT extern const char kSettingMarginBottom[];
45 PRINTING_EXPORT extern const char kSettingMarginLeft[];
46 PRINTING_EXPORT extern const char kSettingMarginRight[];
47 PRINTING_EXPORT extern const char kSettingMarginTop[];
48 PRINTING_EXPORT extern const char kSettingMarginsCustom[];
49 PRINTING_EXPORT extern const char kSettingMarginsType[];
50 PRINTING_EXPORT extern const char kSettingPreviewPageCount[];
51 PRINTING_EXPORT extern const char kSettingPageRange[];
52 PRINTING_EXPORT extern const char kSettingPageRangeFrom[];
53 PRINTING_EXPORT extern const char kSettingPageRangeTo[];
54 PRINTING_EXPORT extern const char kSettingPageWidth[];
55 PRINTING_EXPORT extern const char kSettingPageHeight[];
56 PRINTING_EXPORT extern const char kSettingPreviewModifiable[];
57 PRINTING_EXPORT extern const char kSettingPrintToPDF[];
58 PRINTING_EXPORT extern const char kSettingPrintWithPrivet[];
59 PRINTING_EXPORT extern const char kSettingPrintWithExtension[];
60 PRINTING_EXPORT extern const char kSettingPrintableAreaHeight[];
61 PRINTING_EXPORT extern const char kSettingPrintableAreaWidth[];
62 PRINTING_EXPORT extern const char kSettingPrintableAreaX[];
63 PRINTING_EXPORT extern const char kSettingPrintableAreaY[];
64 PRINTING_EXPORT extern const char kSettingPrinterDescription[];
65 PRINTING_EXPORT extern const char kSettingPrinterName[];
66 PRINTING_EXPORT extern const char kSettingPrinterOptions[];
67 PRINTING_EXPORT extern const char kSettingTicket[];
68 PRINTING_EXPORT extern const char kSettingShouldPrintBackgrounds[];
69 PRINTING_EXPORT extern const char kSettingShouldPrintSelectionOnly[];
70 PRINTING_EXPORT extern const char kSettingShowSystemDialog[];
72 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX;
73 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
74 PRINTING_EXPORT extern const char kSettingOpenPDFInPreview[];
76 #if defined (USE_CUPS)
77 // Printer color models
78 PRINTING_EXPORT extern const char kBlack[];
79 PRINTING_EXPORT extern const char kCMYK[];
80 PRINTING_EXPORT extern const char kKCMY[];
81 PRINTING_EXPORT extern const char kCMY_K[];
82 PRINTING_EXPORT extern const char kCMY[];
83 PRINTING_EXPORT extern const char kColor[];
84 PRINTING_EXPORT extern const char kGray[];
85 PRINTING_EXPORT extern const char kGrayscale[];
86 PRINTING_EXPORT extern const char kGreyscale[];
87 PRINTING_EXPORT extern const char kMonochrome[];
88 PRINTING_EXPORT extern const char kNormal[];
89 PRINTING_EXPORT extern const char kNormalGray[];
90 PRINTING_EXPORT extern const char kRGB[];
91 PRINTING_EXPORT extern const char kRGBA[];
92 PRINTING_EXPORT extern const char kRGB16[];
93 #endif
95 // Print job duplex mode values.
96 enum DuplexMode {
97 UNKNOWN_DUPLEX_MODE = -1,
98 SIMPLEX,
99 LONG_EDGE,
100 SHORT_EDGE,
103 // Specifies the horizontal alignment of the headers and footers.
104 enum HorizontalHeaderFooterPosition {
105 LEFT,
106 CENTER,
107 RIGHT
110 // Specifies the vertical alignment of the Headers and Footers.
111 enum VerticalHeaderFooterPosition {
112 TOP,
113 BOTTOM
116 // Print job color mode values.
117 enum ColorModel {
118 UNKNOWN_COLOR_MODEL,
119 GRAY,
120 COLOR,
121 CMYK,
122 CMY,
123 KCMY,
124 CMY_K, // CMY_K represents CMY+K.
125 BLACK,
126 GRAYSCALE,
127 RGB,
128 RGB16,
129 RGBA,
130 COLORMODE_COLOR, // Used in samsung printer ppds.
131 COLORMODE_MONOCHROME, // Used in samsung printer ppds.
132 HP_COLOR_COLOR, // Used in HP color printer ppds.
133 HP_COLOR_BLACK, // Used in HP color printer ppds.
134 PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
135 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
136 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
137 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
138 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
141 // What kind of margins to use.
142 enum MarginType {
143 DEFAULT_MARGINS, // Default varies depending on headers being enabled or not
144 NO_MARGINS,
145 PRINTABLE_AREA_MARGINS,
146 CUSTOM_MARGINS,
147 MARGIN_TYPE_LAST = CUSTOM_MARGINS
150 } // namespace printing
152 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_