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 // Unique ID sent along every preview request. | 9 // Unique ID sent along every preview request. |
10 const char kPreviewRequestID[] = "requestID"; | 10 const char kPreviewRequestID[] = "requestID"; |
11 | 11 |
12 // Print using cloud print: true if selected, false if not. | 12 // Print using cloud print: true if selected, false if not. |
13 const char kSettingCloudPrintId[] = "cloudPrintID"; | 13 const char kSettingCloudPrintId[] = "cloudPrintID"; |
14 | 14 |
15 // Print job setting 'collate'. | 15 // Print job setting 'collate'. |
16 const char kSettingCollate[] = "collate"; | 16 const char kSettingCollate[] = "collate"; |
17 | 17 |
18 // Print out color: true for color, false for grayscale. | 18 // Print out color: true for color, false for grayscale. |
19 const char kSettingColor[] = "color"; | 19 const char kSettingColor[] = "color"; |
20 | 20 |
21 // Number of copies. | 21 // Number of copies. |
22 const char kSettingCopies[] = "copies"; | 22 const char kSettingCopies[] = "copies"; |
23 | 23 |
24 // Device name: Unique printer identifier. | 24 // Device name: Unique printer identifier. |
25 const char kSettingDeviceName[] = "deviceName"; | 25 const char kSettingDeviceName[] = "deviceName"; |
26 | 26 |
27 // Print job duplex mode. | 27 // Print job duplex mode. |
28 const char kSettingDuplexMode[] = "duplex"; | 28 const char kSettingDuplexMode[] = "duplex"; |
29 | 29 |
| 30 // True, when a new set of draft preview data is required. |
| 31 const char kSettingGenerateDraftData[] = "generateDraftData"; |
| 32 |
30 // Page orientation: true for landscape, false for portrait. | 33 // Page orientation: true for landscape, false for portrait. |
31 const char kSettingLandscape[] = "landscape"; | 34 const char kSettingLandscape[] = "landscape"; |
32 | 35 |
33 // A page range. | 36 // A page range. |
34 const char kSettingPageRange[] = "pageRange"; | 37 const char kSettingPageRange[] = "pageRange"; |
35 | 38 |
36 // The first page of a page range. (1-based) | 39 // The first page of a page range. (1-based) |
37 const char kSettingPageRangeFrom[] = "from"; | 40 const char kSettingPageRangeFrom[] = "from"; |
38 | 41 |
39 // The last page of a page range. (1-based) | 42 // The last page of a page range. (1-based) |
40 const char kSettingPageRangeTo[] = "to"; | 43 const char kSettingPageRangeTo[] = "to"; |
41 | 44 |
42 // Printer name. | 45 // Printer name. |
43 const char kSettingPrinterName[] = "printerName"; | 46 const char kSettingPrinterName[] = "printerName"; |
44 | 47 |
45 // Print to PDF option: true if selected, false if not. | 48 // Print to PDF option: true if selected, false if not. |
46 const char kSettingPrintToPDF[] = "printToPDF"; | 49 const char kSettingPrintToPDF[] = "printToPDF"; |
47 | 50 |
48 // Indices used to represent first page, invalid page and complete | 51 // Indices used to represent first page, invalid page and complete |
49 // preview document. | 52 // preview document. |
50 const int FIRST_PAGE_INDEX = 0; | 53 const int FIRST_PAGE_INDEX = 0; |
51 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 54 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
52 const int INVALID_PAGE_INDEX = -2; | 55 const int INVALID_PAGE_INDEX = -2; |
53 | 56 |
54 } // namespace printing | 57 } // namespace printing |
OLD | NEW |