Revert 162447 - Temporarily remove "Swap primary monitor" from keyboard overlay for...
[chromium-blink-merge.git] / printing / print_job_constants.h
blobd9a6006edfd11f84af4bdace4d56d348a36aa748
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 int kSettingHeaderFooterCharacterSpacing;
30 PRINTING_EXPORT extern const char kSettingHeaderFooterFontFamilyName[];
31 PRINTING_EXPORT extern const char kSettingHeaderFooterFontName[];
32 PRINTING_EXPORT extern const int kSettingHeaderFooterFontSize;
33 PRINTING_EXPORT extern const float kSettingHeaderFooterHorizontalRegions;
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 kSettingMarginBottom[];
40 PRINTING_EXPORT extern const char kSettingMarginLeft[];
41 PRINTING_EXPORT extern const char kSettingMarginRight[];
42 PRINTING_EXPORT extern const char kSettingMarginTop[];
43 PRINTING_EXPORT extern const char kSettingMarginsCustom[];
44 PRINTING_EXPORT extern const char kSettingMarginsType[];
45 PRINTING_EXPORT extern const char kSettingPageRange[];
46 PRINTING_EXPORT extern const char kSettingPageRangeFrom[];
47 PRINTING_EXPORT extern const char kSettingPageRangeTo[];
48 PRINTING_EXPORT extern const char kSettingPreviewModifiable[];
49 PRINTING_EXPORT extern const char kSettingPrintableAreaX[];
50 PRINTING_EXPORT extern const char kSettingPrintableAreaY[];
51 PRINTING_EXPORT extern const char kSettingPrintableAreaWidth[];
52 PRINTING_EXPORT extern const char kSettingPrintableAreaHeight[];
53 PRINTING_EXPORT extern const char kSettingPrinterName[];
54 PRINTING_EXPORT extern const char kSettingPrintToPDF[];
56 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX;
57 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
59 #if defined(OS_MACOSX)
60 PRINTING_EXPORT extern const char kSettingOpenPDFInPreview[];
61 #endif // defined(OS_MACOSX)
63 #if defined (USE_CUPS)
64 // Printer color models
65 PRINTING_EXPORT extern const char kBlack[];
66 PRINTING_EXPORT extern const char kCMYK[];
67 PRINTING_EXPORT extern const char kKCMY[];
68 PRINTING_EXPORT extern const char kCMY_K[];
69 PRINTING_EXPORT extern const char kCMY[];
70 PRINTING_EXPORT extern const char kColor[];
71 PRINTING_EXPORT extern const char kGray[];
72 PRINTING_EXPORT extern const char kGrayscale[];
73 PRINTING_EXPORT extern const char kGreyscale[];
74 PRINTING_EXPORT extern const char kMonochrome[];
75 PRINTING_EXPORT extern const char kNormal[];
76 PRINTING_EXPORT extern const char kNormalGray[];
77 PRINTING_EXPORT extern const char kRGB[];
78 PRINTING_EXPORT extern const char kRGBA[];
79 PRINTING_EXPORT extern const char kRGB16[];
80 #endif
82 // Print job duplex mode values.
83 enum DuplexMode {
84 UNKNOWN_DUPLEX_MODE = -1,
85 SIMPLEX,
86 LONG_EDGE,
87 SHORT_EDGE,
90 // Specifies the horizontal alignment of the headers and footers.
91 enum HorizontalHeaderFooterPosition {
92 LEFT,
93 CENTER,
94 RIGHT
97 // Specifies the vertical alignment of the Headers and Footers.
98 enum VerticalHeaderFooterPosition {
99 TOP,
100 BOTTOM
103 // Print job color mode values.
104 enum ColorModels {
105 UNKNOWN_COLOR_MODEL,
106 GRAY,
107 COLOR,
108 CMYK,
109 CMY,
110 KCMY,
111 CMY_K, // CMY_K represents CMY+K.
112 BLACK,
113 GRAYSCALE,
114 RGB,
115 RGB16,
116 RGBA,
117 COLORMODE_COLOR, // Used in samsung printer ppds.
118 COLORMODE_MONOCHROME, // Used in samsung printer ppds.
119 HP_COLOR_COLOR, // Used in HP color printer ppds.
120 HP_COLOR_BLACK, // Used in HP color printer ppds.
121 PRINTOUTMODE_NORMAL, // Used in foomatic ppds.
122 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds.
123 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds.
124 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds.
125 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds
128 // What kind of margins to use.
129 enum MarginType {
130 DEFAULT_MARGINS, // Default varies depending on headers being enabled or not
131 NO_MARGINS,
132 PRINTABLE_AREA_MARGINS,
133 CUSTOM_MARGINS,
136 } // namespace printing
138 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_