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

Side by Side Diff: printing/print_job_constants.h

Issue 7817013: PrintPreview: Added code to identify the printer default duplex value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hide the two sided option if the selected printer is PRINT-TO-PDF Created 9 years, 3 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX; 47 PRINTING_EXPORT extern const int FIRST_PAGE_INDEX;
48 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; 48 PRINTING_EXPORT extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX;
49 49
50 // Print job duplex mode values. 50 // Print job duplex mode values.
51 enum DuplexMode { 51 enum DuplexMode {
52 SIMPLEX, 52 SIMPLEX,
53 LONG_EDGE, 53 LONG_EDGE,
54 SHORT_EDGE, 54 SHORT_EDGE,
55 }; 55 };
56 56
57 // Specifies the possible default duplex setting values.
58 enum DefaultDuplexSetting {
vandebo (ex-Chrome) 2011/09/07 21:55:57 Can we use the DuplexMode enum instead of introduc
kmadhusu 2011/09/07 23:21:56 Added UNKNOWN_DUPLEX_MODE in DuplexMode enum.
59 UNKNOWN = -1,
60 ONE_SIDED,
61 TWO_SIDED,
62 };
63
57 // Specifies the horizontal alignment of the headers and footers. 64 // Specifies the horizontal alignment of the headers and footers.
58 enum HorizontalHeaderFooterPosition { 65 enum HorizontalHeaderFooterPosition {
59 LEFT, 66 LEFT,
60 CENTER, 67 CENTER,
61 RIGHT 68 RIGHT
62 }; 69 };
63 70
64 // Specifies the vertical alignment of the Headers and Footers. 71 // Specifies the vertical alignment of the Headers and Footers.
65 enum VerticalHeaderFooterPosition { 72 enum VerticalHeaderFooterPosition {
66 TOP, 73 TOP,
67 BOTTOM 74 BOTTOM
68 }; 75 };
69 76
70 // Print job color mode values. 77 // Print job color mode values.
71 enum ColorMode { 78 enum ColorMode {
72 GRAY = 1, 79 GRAY = 1,
73 COLOR, 80 COLOR,
74 CMYK, 81 CMYK,
75 }; 82 };
76 83
77 } // namespace printing 84 } // namespace printing
78 85
79 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ 86 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_
OLDNEW
« chrome/browser/ui/webui/print_preview_handler.cc ('K') | « chrome/test/data/webui/print_preview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698