| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ | 5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ |
| 6 #define PRINTING_PRINT_JOB_CONSTANTS_H_ | 6 #define PRINTING_PRINT_JOB_CONSTANTS_H_ |
| 7 | 7 |
| 8 #include "printing/printing_export.h" | 8 #include "printing/printing_export.h" |
| 9 | 9 |
| 10 namespace printing { | 10 namespace printing { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 PRINTING_EXPORT extern const char kSettingMargins[]; | 41 PRINTING_EXPORT extern const char kSettingMargins[]; |
| 42 PRINTING_EXPORT extern const char kSettingPageRange[]; | 42 PRINTING_EXPORT extern const char kSettingPageRange[]; |
| 43 PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; | 43 PRINTING_EXPORT extern const char kSettingPageRangeFrom[]; |
| 44 PRINTING_EXPORT extern const char kSettingPageRangeTo[]; | 44 PRINTING_EXPORT extern const char kSettingPageRangeTo[]; |
| 45 PRINTING_EXPORT extern const char kSettingPrinterName[]; | 45 PRINTING_EXPORT extern const char kSettingPrinterName[]; |
| 46 PRINTING_EXPORT extern const char kSettingPrintToPDF[]; | 46 PRINTING_EXPORT extern const char kSettingPrintToPDF[]; |
| 47 | 47 |
| 48 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; | 48 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; |
| 49 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; | 49 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
| 50 | 50 |
| 51 #if defined (USE_CUPS) | |
| 52 // Printer color models | |
| 53 PRINTING_EXPORT extern const char kBlack[]; | |
| 54 PRINTING_EXPORT extern const char kCMYK[]; | |
| 55 PRINTING_EXPORT extern const char kKCMY[]; | |
| 56 PRINTING_EXPORT extern const char kCMY_K[]; | |
| 57 PRINTING_EXPORT extern const char kCMY[]; | |
| 58 PRINTING_EXPORT extern const char kColor[]; | |
| 59 PRINTING_EXPORT extern const char kGray[]; | |
| 60 PRINTING_EXPORT extern const char kGrayscale[]; | |
| 61 PRINTING_EXPORT extern const char kGreyscale[]; | |
| 62 PRINTING_EXPORT extern const char kMonochrome[]; | |
| 63 PRINTING_EXPORT extern const char kNormal[]; | |
| 64 PRINTING_EXPORT extern const char kNormalGray[]; | |
| 65 PRINTING_EXPORT extern const char kRGB[]; | |
| 66 PRINTING_EXPORT extern const char kRGBA[]; | |
| 67 PRINTING_EXPORT extern const char kRGB16[]; | |
| 68 #endif | |
| 69 | |
| 70 // Print job duplex mode values. | 51 // Print job duplex mode values. |
| 71 enum DuplexMode { | 52 enum DuplexMode { |
| 72 UNKNOWN_DUPLEX_MODE = -1, | 53 UNKNOWN_DUPLEX_MODE = -1, |
| 73 SIMPLEX, | 54 SIMPLEX, |
| 74 LONG_EDGE, | 55 LONG_EDGE, |
| 75 SHORT_EDGE, | 56 SHORT_EDGE, |
| 76 }; | 57 }; |
| 77 | 58 |
| 78 // Specifies the horizontal alignment of the headers and footers. | 59 // Specifies the horizontal alignment of the headers and footers. |
| 79 enum HorizontalHeaderFooterPosition { | 60 enum HorizontalHeaderFooterPosition { |
| 80 LEFT, | 61 LEFT, |
| 81 CENTER, | 62 CENTER, |
| 82 RIGHT | 63 RIGHT |
| 83 }; | 64 }; |
| 84 | 65 |
| 85 // Specifies the vertical alignment of the Headers and Footers. | 66 // Specifies the vertical alignment of the Headers and Footers. |
| 86 enum VerticalHeaderFooterPosition { | 67 enum VerticalHeaderFooterPosition { |
| 87 TOP, | 68 TOP, |
| 88 BOTTOM | 69 BOTTOM |
| 89 }; | 70 }; |
| 90 | 71 |
| 91 // Print job color mode values. | 72 // Print job color mode values. |
| 92 enum ColorModels { | 73 enum ColorMode { |
| 93 UNKNOWN_COLOR_MODEL, | 74 GRAY = 1, |
| 94 GRAY, | |
| 95 COLOR, | 75 COLOR, |
| 96 CMYK, | 76 CMYK, |
| 97 CMY, | |
| 98 KCMY, | |
| 99 CMY_K, // CMY_K represents CMY+K. | |
| 100 BLACK, | |
| 101 RGB, | |
| 102 RGB16, | |
| 103 RGBA, | |
| 104 COLORMODE_COLOR, // Used in samsung printer ppds. | |
| 105 COLORMODE_MONOCHROME, // Used in samsung printer ppds. | |
| 106 HP_COLOR_COLOR, // Used in HP color printer ppds. | |
| 107 HP_COLOR_BLACK, // Used in HP color printer ppds. | |
| 108 PRINTOUTMODE_NORMAL, // Used in foomatic ppds. | |
| 109 PRINTOUTMODE_NORMAL_GRAY, // Used in foomatic ppds. | |
| 110 PROCESSCOLORMODEL_CMYK, // Used in canon printer ppds. | |
| 111 PROCESSCOLORMODEL_GREYSCALE, // Used in canon printer ppds. | |
| 112 PROCESSCOLORMODEL_RGB, // Used in canon printer ppds | |
| 113 }; | 77 }; |
| 114 | 78 |
| 115 } // namespace printing | 79 } // namespace printing |
| 116 | 80 |
| 117 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ | 81 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |
| OLD | NEW |