OLD | NEW |
---|---|
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 #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"; |
11 | 11 |
12 // Unique ID sent along every preview request. | 12 // Unique ID sent along every preview request. |
13 const char kPreviewRequestID[] = "requestID"; | 13 const char kPreviewRequestID[] = "requestID"; |
14 | 14 |
15 // Unique ID to identify a print preview UI. | 15 // Unique ID to identify a print preview UI. |
16 const char kPreviewUIAddr[] = "previewUIAddr"; | 16 const char kPreviewUIAddr[] = "previewUIAddr"; |
17 | 17 |
18 // Print using cloud print: true if selected, false if not. | 18 // Print using cloud print: true if selected, false if not. |
19 const char kSettingCloudPrintId[] = "cloudPrintID"; | 19 const char kSettingCloudPrintId[] = "cloudPrintID"; |
20 | 20 |
21 // Print using cloud print dialog: true if selected, false if not. | 21 // Print using cloud print dialog: true if selected, false if not. |
22 const char kSettingCloudPrintDialog[] = "printWithCloudPrint"; | 22 const char kSettingCloudPrintDialog[] = "printWithCloudPrint"; |
23 | 23 |
24 const char kSettingCloudPrintData[] = "cloudPrintData"; | |
25 | |
24 // Print job setting 'collate'. | 26 // Print job setting 'collate'. |
25 const char kSettingCollate[] = "collate"; | 27 const char kSettingCollate[] = "collate"; |
26 | 28 |
27 // Print out color: true for color, false for grayscale. | 29 // Print out color: true for color, false for grayscale. |
28 const char kSettingColor[] = "color"; | 30 const char kSettingColor[] = "color"; |
29 | 31 |
30 // Key that specifies the height of the content area of the page. | 32 // Key that specifies the height of the content area of the page. |
31 const char kSettingContentHeight[] = "contentHeight"; | 33 const char kSettingContentHeight[] = "contentHeight"; |
32 | 34 |
33 // Key that specifies the width of the content area of the page. | 35 // Key that specifies the width of the content area of the page. |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 const char kSettingPageRangeTo[] = "to"; | 114 const char kSettingPageRangeTo[] = "to"; |
113 | 115 |
114 const char kSettingPreviewModifiable[] = "previewModifiable"; | 116 const char kSettingPreviewModifiable[] = "previewModifiable"; |
115 | 117 |
116 // Printer name. | 118 // Printer name. |
117 const char kSettingPrinterName[] = "printerName"; | 119 const char kSettingPrinterName[] = "printerName"; |
118 | 120 |
119 // Print to PDF option: true if selected, false if not. | 121 // Print to PDF option: true if selected, false if not. |
120 const char kSettingPrintToPDF[] = "printToPDF"; | 122 const char kSettingPrintToPDF[] = "printToPDF"; |
121 | 123 |
124 const char kSettingInitiatorTabTitle[] = "initiatorTabTitle"; | |
vandebo (ex-Chrome)
2011/11/10 18:39:14
Add comments describing what each of these is.
dpapad
2011/11/10 20:04:01
Done.
| |
125 const char kSettingNumberFormat[] = "numberFormat"; | |
126 const char kSettingMeasurementSystem[] = "measurementSystem"; | |
127 | |
122 // Indices used to represent first preview page and complete preview document. | 128 // Indices used to represent first preview page and complete preview document. |
123 const int FIRST_PAGE_INDEX = 0; | 129 const int FIRST_PAGE_INDEX = 0; |
124 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 130 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
125 | 131 |
126 #if defined (USE_CUPS) | 132 #if defined (USE_CUPS) |
127 const char kBlack[] = "Black"; | 133 const char kBlack[] = "Black"; |
128 const char kCMYK[] = "CMYK"; | 134 const char kCMYK[] = "CMYK"; |
129 const char kKCMY[] = "KCMY"; | 135 const char kKCMY[] = "KCMY"; |
130 const char kCMY_K[] = "CMY+K"; | 136 const char kCMY_K[] = "CMY+K"; |
131 const char kCMY[] = "CMY"; | 137 const char kCMY[] = "CMY"; |
132 const char kColor[] = "Color"; | 138 const char kColor[] = "Color"; |
133 const char kGray[] = "Gray"; | 139 const char kGray[] = "Gray"; |
134 const char kGrayscale[] = "Grayscale"; | 140 const char kGrayscale[] = "Grayscale"; |
135 const char kGreyscale[] = "Greyscale"; | 141 const char kGreyscale[] = "Greyscale"; |
136 const char kMonochrome[] = "Monochrome"; | 142 const char kMonochrome[] = "Monochrome"; |
137 const char kNormal[] = "Normal"; | 143 const char kNormal[] = "Normal"; |
138 const char kNormalGray[] = "Normal.Gray"; | 144 const char kNormalGray[] = "Normal.Gray"; |
139 const char kRGB[] = "RGB"; | 145 const char kRGB[] = "RGB"; |
140 const char kRGBA[] = "RGBA"; | 146 const char kRGBA[] = "RGBA"; |
141 const char kRGB16[] = "RGB16"; | 147 const char kRGB16[] = "RGB16"; |
142 #endif | 148 #endif |
143 | 149 |
144 } // namespace printing | 150 } // namespace printing |
OLD | NEW |