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

Side by Side Diff: printing/print_job_constants.cc

Issue 47823002: De-duplicate job_settings parsing code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Noam's comments Created 7 years, 1 month 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 | « printing/print_job_constants.h ('k') | printing/print_settings.h » ('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) 2012 The Chromium Authors. All rights reserved. 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 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 #include "printing/print_job_constants.h" 5 #include "printing/print_job_constants.h"
6 6
7 namespace printing { 7 namespace printing {
8 8
9 // True if this is the first preview request. 9 // True if this is the first preview request.
10 const char kIsFirstRequest[] = "isFirstRequest"; 10 const char kIsFirstRequest[] = "isFirstRequest";
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Whether to print CSS backgrounds. 122 // Whether to print CSS backgrounds.
123 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds"; 123 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds";
124 124
125 // Whether to print selection only. 125 // Whether to print selection only.
126 const char kSettingShouldPrintSelectionOnly[] = "shouldPrintSelectionOnly"; 126 const char kSettingShouldPrintSelectionOnly[] = "shouldPrintSelectionOnly";
127 127
128 // Indices used to represent first preview page and complete preview document. 128 // Indices used to represent first preview page and complete preview document.
129 const int FIRST_PAGE_INDEX = 0; 129 const int FIRST_PAGE_INDEX = 0;
130 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; 130 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
131 131
132 #if defined(OS_MACOSX) 132 // Whether to show PDF in view provided by OS. Implemented for MacOS only.
133 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview"; 133 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview";
134 #endif
135 134
136 #if defined (USE_CUPS) 135 #if defined (USE_CUPS)
137 const char kBlack[] = "Black"; 136 const char kBlack[] = "Black";
138 const char kCMYK[] = "CMYK"; 137 const char kCMYK[] = "CMYK";
139 const char kKCMY[] = "KCMY"; 138 const char kKCMY[] = "KCMY";
140 const char kCMY_K[] = "CMY+K"; 139 const char kCMY_K[] = "CMY+K";
141 const char kCMY[] = "CMY"; 140 const char kCMY[] = "CMY";
142 const char kColor[] = "Color"; 141 const char kColor[] = "Color";
143 const char kGray[] = "Gray"; 142 const char kGray[] = "Gray";
144 const char kGrayscale[] = "Grayscale"; 143 const char kGrayscale[] = "Grayscale";
145 const char kGreyscale[] = "Greyscale"; 144 const char kGreyscale[] = "Greyscale";
146 const char kMonochrome[] = "Monochrome"; 145 const char kMonochrome[] = "Monochrome";
147 const char kNormal[] = "Normal"; 146 const char kNormal[] = "Normal";
148 const char kNormalGray[] = "Normal.Gray"; 147 const char kNormalGray[] = "Normal.Gray";
149 const char kRGB[] = "RGB"; 148 const char kRGB[] = "RGB";
150 const char kRGBA[] = "RGBA"; 149 const char kRGBA[] = "RGBA";
151 const char kRGB16[] = "RGB16"; 150 const char kRGB16[] = "RGB16";
152 #endif 151 #endif
153 152
154 } // namespace printing 153 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698