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

Side by Side Diff: printing/print_job_constants.cc

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 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
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/printing_context.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) 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 #include "printing/features/features.h"
8
7 namespace printing { 9 namespace printing {
8 10
9 // True if this is the first preview request. 11 // True if this is the first preview request.
10 const char kIsFirstRequest[] = "isFirstRequest"; 12 const char kIsFirstRequest[] = "isFirstRequest";
11 13
12 // Unique ID sent along every preview request. 14 // Unique ID sent along every preview request.
13 const char kPreviewRequestID[] = "requestID"; 15 const char kPreviewRequestID[] = "requestID";
14 16
15 // Unique ID of Print Preview initiator host. 17 // Unique ID of Print Preview initiator host.
16 const char kPreviewInitiatorHostId[] = "previewInitiatorHostId"; 18 const char kPreviewInitiatorHostId[] = "previewInitiatorHostId";
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 174
173 // Ticket option. Contains the ticket in CJT format. 175 // Ticket option. Contains the ticket in CJT format.
174 const char kSettingTicket[] = "ticket"; 176 const char kSettingTicket[] = "ticket";
175 177
176 // Whether to print CSS backgrounds. 178 // Whether to print CSS backgrounds.
177 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds"; 179 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds";
178 180
179 // Whether to print selection only. 181 // Whether to print selection only.
180 const char kSettingShouldPrintSelectionOnly[] = "shouldPrintSelectionOnly"; 182 const char kSettingShouldPrintSelectionOnly[] = "shouldPrintSelectionOnly";
181 183
182 #if defined(ENABLE_BASIC_PRINTING) 184 #if BUILDFLAG(ENABLE_BASIC_PRINTING)
183 // Whether to print using the system dialog. 185 // Whether to print using the system dialog.
184 const char kSettingShowSystemDialog[] = "showSystemDialog"; 186 const char kSettingShowSystemDialog[] = "showSystemDialog";
185 #endif 187 #endif
186 188
187 // Indices used to represent first preview page and complete preview document. 189 // Indices used to represent first preview page and complete preview document.
188 const int FIRST_PAGE_INDEX = 0; 190 const int FIRST_PAGE_INDEX = 0;
189 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; 191 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
190 192
191 // Whether to show PDF in view provided by OS. Implemented for MacOS only. 193 // Whether to show PDF in view provided by OS. Implemented for MacOS only.
192 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview"; 194 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview";
(...skipping 10 matching lines...) Expand all
203 const char kGreyscale[] = "Greyscale"; 205 const char kGreyscale[] = "Greyscale";
204 const char kMonochrome[] = "Monochrome"; 206 const char kMonochrome[] = "Monochrome";
205 const char kNormal[] = "Normal"; 207 const char kNormal[] = "Normal";
206 const char kNormalGray[] = "Normal.Gray"; 208 const char kNormalGray[] = "Normal.Gray";
207 const char kRGB[] = "RGB"; 209 const char kRGB[] = "RGB";
208 const char kRGBA[] = "RGBA"; 210 const char kRGBA[] = "RGBA";
209 const char kRGB16[] = "RGB16"; 211 const char kRGB16[] = "RGB16";
210 #endif 212 #endif
211 213
212 } // namespace printing 214 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/printing_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698