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