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