Enable password generation only if sync for passwords is enabled.
[chromium-blink-merge.git] / printing / print_job_constants.h
blob5f63f8f22b1e753b5c91a90e54f7b234182c7ebe
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 kPreviewUIAddr[];
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 kSettingContentHeight[];
21 PRINTING_EXPORT extern const char kSettingContentWidth[];
22 PRINTING_EXPORT extern const char kSettingCopies[];
23 PRINTING_EXPORT extern const char kSettingDeviceName[];
24 PRINTING_EXPORT extern const char kSettingDuplexMode[];
25 PRINTING_EXPORT extern const char kSettingGenerateDraftData[];
26 PRINTING_EXPORT extern const char kSettingHeaderFooterEnabled[];
27 PRINTING_EXPORT extern const int kSettingHeaderFooterCharacterSpacing;
28 PRINTING_EXPORT extern const char kSettingHeaderFooterFontFamilyName[];
29 PRINTING_EXPORT extern const char kSettingHeaderFooterFontName[];
30 PRINTING_EXPORT extern const int kSettingHeaderFooterFontSize;
31 PRINTING_EXPORT extern const float kSettingHeaderFooterHorizontalRegions;
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 kSettingMarginBottom[];
38 PRINTING_EXPORT extern const char kSettingMarginLeft[];
39 PRINTING_EXPORT extern const char kSettingMarginRight[];
40 PRINTING_EXPORT extern const char kSettingMarginTop[];
41 PRINTING_EXPORT extern const char kSettingMarginsCustom[];
42 PRINTING_EXPORT extern const char kSettingMarginsType[];
43 PRINTING_EXPORT extern const char kSettingPageRange[];
44 PRINTING_EXPORT extern const char kSettingPageRangeFrom[];
45 PRINTING_EXPORT extern const char kSettingPageRangeTo[];
46 PRINTING_EXPORT extern const char kSettingPreviewModifiable[];
47 PRINTING_EXPORT extern const char kSettingPrintableAreaX[];
48 PRINTING_EXPORT extern const char kSettingPrintableAreaY[];
49 PRINTING_EXPORT extern const char kSettingPrintableAreaWidth[];
50 PRINTING_EXPORT extern const char kSettingPrintableAreaHeight[];
51 PRINTING_EXPORT extern const char kSettingPrinterName[];
52 PRINTING_EXPORT extern const char kSettingPrintToPDF[];
54 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX;
55 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
57 #if defined(OS_MACOSX)
58 PRINTING_EXPORT extern const char kSettingOpenPDFInPreview[];
59 #endif // defined(OS_MACOSX)
61 #if defined (USE_CUPS)
62 // Printer color models
63 PRINTING_EXPORT extern const char kBlack[];
64 PRINTING_EXPORT extern const char kCMYK[];
65 PRINTING_EXPORT extern const char kKCMY[];
66 PRINTING_EXPORT extern const char kCMY_K[];
67 PRINTING_EXPORT extern const char kCMY[];
68 PRINTING_EXPORT extern const char kColor[];
69 PRINTING_EXPORT extern const char kGray[];
70 PRINTING_EXPORT extern const char kGrayscale[];
71 PRINTING_EXPORT extern const char kGreyscale[];
72 PRINTING_EXPORT extern const char kMonochrome[];
73 PRINTING_EXPORT extern const char kNormal[];
74 PRINTING_EXPORT extern const char kNormalGray[];
75 PRINTING_EXPORT extern const char kRGB[];
76 PRINTING_EXPORT extern const char kRGBA[];
77 PRINTING_EXPORT extern const char kRGB16[];
78 #endif
80 // Print job duplex mode values.
81 enum DuplexMode {
82 UNKNOWN_DUPLEX_MODE = -1,
83 SIMPLEX,
84 LONG_EDGE,
85 SHORT_EDGE,
88 // Specifies the horizontal alignment of the headers and footers.
89 enum HorizontalHeaderFooterPosition {
90 LEFT,
91 CENTER,
92 RIGHT
95 // Specifies the vertical alignment of the Headers and Footers.
96 enum VerticalHeaderFooterPosition {
97 TOP,
98 BOTTOM
101 // Print job color mode values.
102 enum ColorModels {
103 UNKNOWN_COLOR_MODEL,
104 GRAY,
105 COLOR,
106 CMYK,
107 CMY,
108 KCMY,
109 CMY_K, // CMY_K represents CMY+K.
110 BLACK,
111 GRAYSCALE,
112 RGB,
113 RGB16,
114 RGBA,
115 COLORMODE_COLOR, // Used in samsung printer ppds.
116 COLORMODE_MONOCHROME, // Used in samsung printer ppds.
117 HP_COLOR_COLOR, // Used in HP color printer ppds.
118 HP_COLOR_BLACK, // Used in HP color printer ppds.
119 PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
120 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
121 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
122 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
123 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
126 // What kind of margins to use.
127 enum MarginType {
128 DEFAULT_MARGINS, // Default varies depending on headers being enabled or not
129 NO_MARGINS,
130 PRINTABLE_AREA_MARGINS,
131 CUSTOM_MARGINS,
134 } // namespace printing
136 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_