Make ServerBoundCertStore interface async, move SQLiteServerBoundCertStore load onto...
[chromium-blink-merge.git] / printing / print_job_constants.h
blobfcee819f83ea5a85431261dce136bf4c6311407c
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 kPreviewUIID[];
16 PRINTING_EXPORT extern const char kSettingCloudPrintId[];
17 PRINTING_EXPORT extern const char kSettingCloudPrintDialog[];
18 PRINTING_EXPORT extern const char kSettingCollate[];
19 PRINTING_EXPORT extern const char kSettingColor[];
20 PRINTING_EXPORT extern const char kSettingSetColorAsDefault[];
21 PRINTING_EXPORT extern const char kSettingContentHeight[];
22 PRINTING_EXPORT extern const char kSettingContentWidth[];
23 PRINTING_EXPORT extern const char kSettingCopies[];
24 PRINTING_EXPORT extern const char kSettingDeviceName[];
25 PRINTING_EXPORT extern const char kSettingDuplexMode[];
26 PRINTING_EXPORT extern const char kSettingFitToPageEnabled[];
27 PRINTING_EXPORT extern const char kSettingGenerateDraftData[];
28 PRINTING_EXPORT extern const char kSettingHeaderFooterEnabled[];
29 PRINTING_EXPORT extern const float kSettingHeaderFooterInterstice;
30 PRINTING_EXPORT extern const char kSettingHeaderFooterDate[];
31 PRINTING_EXPORT extern const char kSettingHeaderFooterTitle[];
32 PRINTING_EXPORT extern const char kSettingHeaderFooterURL[];
33 PRINTING_EXPORT extern const char kSettingLandscape[];
34 PRINTING_EXPORT extern const char kSettingMarginBottom[];
35 PRINTING_EXPORT extern const char kSettingMarginLeft[];
36 PRINTING_EXPORT extern const char kSettingMarginRight[];
37 PRINTING_EXPORT extern const char kSettingMarginTop[];
38 PRINTING_EXPORT extern const char kSettingMarginsCustom[];
39 PRINTING_EXPORT extern const char kSettingMarginsType[];
40 PRINTING_EXPORT extern const char kSettingPageRange[];
41 PRINTING_EXPORT extern const char kSettingPageRangeFrom[];
42 PRINTING_EXPORT extern const char kSettingPageRangeTo[];
43 PRINTING_EXPORT extern const char kSettingPreviewModifiable[];
44 PRINTING_EXPORT extern const char kSettingPrintableAreaX[];
45 PRINTING_EXPORT extern const char kSettingPrintableAreaY[];
46 PRINTING_EXPORT extern const char kSettingPrintableAreaWidth[];
47 PRINTING_EXPORT extern const char kSettingPrintableAreaHeight[];
48 PRINTING_EXPORT extern const char kSettingPrinterName[];
49 PRINTING_EXPORT extern const char kSettingPrintToPDF[];
50 PRINTING_EXPORT extern const char kSettingShouldPrintBackgrounds[];
52 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX;
53 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
55 #if defined(OS_MACOSX)
56 PRINTING_EXPORT extern const char kSettingOpenPDFInPreview[];
57 #endif // defined(OS_MACOSX)
59 #if defined (USE_CUPS)
60 // Printer color models
61 PRINTING_EXPORT extern const char kBlack[];
62 PRINTING_EXPORT extern const char kCMYK[];
63 PRINTING_EXPORT extern const char kKCMY[];
64 PRINTING_EXPORT extern const char kCMY_K[];
65 PRINTING_EXPORT extern const char kCMY[];
66 PRINTING_EXPORT extern const char kColor[];
67 PRINTING_EXPORT extern const char kGray[];
68 PRINTING_EXPORT extern const char kGrayscale[];
69 PRINTING_EXPORT extern const char kGreyscale[];
70 PRINTING_EXPORT extern const char kMonochrome[];
71 PRINTING_EXPORT extern const char kNormal[];
72 PRINTING_EXPORT extern const char kNormalGray[];
73 PRINTING_EXPORT extern const char kRGB[];
74 PRINTING_EXPORT extern const char kRGBA[];
75 PRINTING_EXPORT extern const char kRGB16[];
76 #endif
78 // Print job duplex mode values.
79 enum DuplexMode {
80 UNKNOWN_DUPLEX_MODE = -1,
81 SIMPLEX,
82 LONG_EDGE,
83 SHORT_EDGE,
86 // Specifies the horizontal alignment of the headers and footers.
87 enum HorizontalHeaderFooterPosition {
88 LEFT,
89 CENTER,
90 RIGHT
93 // Specifies the vertical alignment of the Headers and Footers.
94 enum VerticalHeaderFooterPosition {
95 TOP,
96 BOTTOM
99 // Print job color mode values.
100 enum ColorModels {
101 UNKNOWN_COLOR_MODEL,
102 GRAY,
103 COLOR,
104 CMYK,
105 CMY,
106 KCMY,
107 CMY_K, // CMY_K represents CMY+K.
108 BLACK,
109 GRAYSCALE,
110 RGB,
111 RGB16,
112 RGBA,
113 COLORMODE_COLOR, // Used in samsung printer ppds.
114 COLORMODE_MONOCHROME, // Used in samsung printer ppds.
115 HP_COLOR_COLOR, // Used in HP color printer ppds.
116 HP_COLOR_BLACK, // Used in HP color printer ppds.
117 PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
118 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
119 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
120 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
121 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
124 // What kind of margins to use.
125 enum MarginType {
126 DEFAULT_MARGINS, // Default varies depending on headers being enabled or not
127 NO_MARGINS,
128 PRINTABLE_AREA_MARGINS,
129 CUSTOM_MARGINS,
132 } // namespace printing
134 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_