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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 const char kSettingPrintableAreaY[] = "printableAreaY"; | 109 const char kSettingPrintableAreaY[] = "printableAreaY"; |
110 const char kSettingPrintableAreaWidth[] = "printableAreaWidth"; | 110 const char kSettingPrintableAreaWidth[] = "printableAreaWidth"; |
111 const char kSettingPrintableAreaHeight[] = "printableAreaHeight"; | 111 const char kSettingPrintableAreaHeight[] = "printableAreaHeight"; |
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. |
| 120 const char kSettingShouldPrintBackgrounds[] = "shouldPrintBackgrounds"; |
| 121 |
119 // Indices used to represent first preview page and complete preview document. | 122 // Indices used to represent first preview page and complete preview document. |
120 const int FIRST_PAGE_INDEX = 0; | 123 const int FIRST_PAGE_INDEX = 0; |
121 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 124 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
122 | 125 |
123 #if defined(OS_MACOSX) | 126 #if defined(OS_MACOSX) |
124 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview"; | 127 const char kSettingOpenPDFInPreview[] = "OpenPDFInPreview"; |
125 #endif | 128 #endif |
126 | 129 |
127 #if defined (USE_CUPS) | 130 #if defined (USE_CUPS) |
128 const char kBlack[] = "Black"; | 131 const char kBlack[] = "Black"; |
129 const char kCMYK[] = "CMYK"; | 132 const char kCMYK[] = "CMYK"; |
130 const char kKCMY[] = "KCMY"; | 133 const char kKCMY[] = "KCMY"; |
131 const char kCMY_K[] = "CMY+K"; | 134 const char kCMY_K[] = "CMY+K"; |
132 const char kCMY[] = "CMY"; | 135 const char kCMY[] = "CMY"; |
133 const char kColor[] = "Color"; | 136 const char kColor[] = "Color"; |
134 const char kGray[] = "Gray"; | 137 const char kGray[] = "Gray"; |
135 const char kGrayscale[] = "Grayscale"; | 138 const char kGrayscale[] = "Grayscale"; |
136 const char kGreyscale[] = "Greyscale"; | 139 const char kGreyscale[] = "Greyscale"; |
137 const char kMonochrome[] = "Monochrome"; | 140 const char kMonochrome[] = "Monochrome"; |
138 const char kNormal[] = "Normal"; | 141 const char kNormal[] = "Normal"; |
139 const char kNormalGray[] = "Normal.Gray"; | 142 const char kNormalGray[] = "Normal.Gray"; |
140 const char kRGB[] = "RGB"; | 143 const char kRGB[] = "RGB"; |
141 const char kRGBA[] = "RGBA"; | 144 const char kRGBA[] = "RGBA"; |
142 const char kRGB16[] = "RGB16"; | 145 const char kRGB16[] = "RGB16"; |
143 #endif | 146 #endif |
144 | 147 |
145 } // namespace printing | 148 } // namespace printing |
OLD | NEW |