OLD | NEW |
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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 | 112 |
113 // Printer name. | 113 // Printer name. |
114 const char kSettingPrinterName[] = "printerName"; | 114 const char kSettingPrinterName[] = "printerName"; |
115 | 115 |
116 // Print to PDF option: true if selected, false if not. | 116 // Print to PDF option: true if selected, false if not. |
117 const char kSettingPrintToPDF[] = "printToPDF"; | 117 const char kSettingPrintToPDF[] = "printToPDF"; |
118 | 118 |
119 // Whether to print CSS backgrounds. | 119 // Whether to print CSS backgrounds. |
120 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds"; | 120 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds"; |
121 | 121 |
| 122 // Whether to print selection only. |
| 123 const char kSettingShouldPrintSelectionOnly[] = "shouldPrintSelectionOnly"; |
| 124 |
122 // Indices used to represent first preview page and complete preview document. | 125 // Indices used to represent first preview page and complete preview document. |
123 const int FIRST_PAGE_INDEX = 0; | 126 const int FIRST_PAGE_INDEX = 0; |
124 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 127 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
125 | 128 |
126 #if defined(OS_MACOSX) | 129 #if defined(OS_MACOSX) |
127 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview"; | 130 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview"; |
128 #endif | 131 #endif |
129 | 132 |
130 #if defined (USE_CUPS) | 133 #if defined (USE_CUPS) |
131 const char kBlack[] = "Black"; | 134 const char kBlack[] = "Black"; |
132 const char kCMYK[] = "CMYK"; | 135 const char kCMYK[] = "CMYK"; |
133 const char kKCMY[] = "KCMY"; | 136 const char kKCMY[] = "KCMY"; |
134 const char kCMY_K[] = "CMY+K"; | 137 const char kCMY_K[] = "CMY+K"; |
135 const char kCMY[] = "CMY"; | 138 const char kCMY[] = "CMY"; |
136 const char kColor[] = "Color"; | 139 const char kColor[] = "Color"; |
137 const char kGray[] = "Gray"; | 140 const char kGray[] = "Gray"; |
138 const char kGrayscale[] = "Grayscale"; | 141 const char kGrayscale[] = "Grayscale"; |
139 const char kGreyscale[] = "Greyscale"; | 142 const char kGreyscale[] = "Greyscale"; |
140 const char kMonochrome[] = "Monochrome"; | 143 const char kMonochrome[] = "Monochrome"; |
141 const char kNormal[] = "Normal"; | 144 const char kNormal[] = "Normal"; |
142 const char kNormalGray[] = "Normal.Gray"; | 145 const char kNormalGray[] = "Normal.Gray"; |
143 const char kRGB[] = "RGB"; | 146 const char kRGB[] = "RGB"; |
144 const char kRGBA[] = "RGBA"; | 147 const char kRGBA[] = "RGBA"; |
145 const char kRGB16[] = "RGB16"; | 148 const char kRGB16[] = "RGB16"; |
146 #endif | 149 #endif |
147 | 150 |
148 } // namespace printing | 151 } // namespace printing |
OLD | NEW |