Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: printing/print_job_constants.h

Issue 8226024: Reland 105087: PrintPreview: Fix printer color settings issues based on printer ppd/schema info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | printing/print_job_constants.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
51 // Print job duplex mode values. 70 // Print job duplex mode values.
52 enum DuplexMode { 71 enum DuplexMode {
53 UNKNOWN_DUPLEX_MODE = -1, 72 UNKNOWN_DUPLEX_MODE = -1,
54 SIMPLEX, 73 SIMPLEX,
55 LONG_EDGE, 74 LONG_EDGE,
56 SHORT_EDGE, 75 SHORT_EDGE,
57 }; 76 };
58 77
59 // Specifies the horizontal alignment of the headers and footers. 78 // Specifies the horizontal alignment of the headers and footers.
60 enum HorizontalHeaderFooterPosition { 79 enum HorizontalHeaderFooterPosition {
61 LEFT, 80 LEFT,
62 CENTER, 81 CENTER,
63 RIGHT 82 RIGHT
64 }; 83 };
65 84
66 // Specifies the vertical alignment of the Headers and Footers. 85 // Specifies the vertical alignment of the Headers and Footers.
67 enum VerticalHeaderFooterPosition { 86 enum VerticalHeaderFooterPosition {
68 TOP, 87 TOP,
69 BOTTOM 88 BOTTOM
70 }; 89 };
71 90
72 // Print job color mode values. 91 // Print job color mode values.
73 enum ColorMode { 92 enum ColorModels {
74 GRAY = 1, 93 UNKNOWN_COLOR_MODEL,
94 GRAY,
75 COLOR, 95 COLOR,
76 CMYK, 96 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
77 }; 113 };
78 114
79 } // namespace printing 115 } // namespace printing
80 116
81 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ 117 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | printing/print_job_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698