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"; |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Number of copies. | 24 // Number of copies. |
25 const char kSettingCopies[] = "copies"; | 25 const char kSettingCopies[] = "copies"; |
26 | 26 |
27 // Device name: Unique printer identifier. | 27 // Device name: Unique printer identifier. |
28 const char kSettingDeviceName[] = "deviceName"; | 28 const char kSettingDeviceName[] = "deviceName"; |
29 | 29 |
30 // Print job duplex mode. | 30 // Print job duplex mode. |
31 const char kSettingDuplexMode[] = "duplex"; | 31 const char kSettingDuplexMode[] = "duplex"; |
32 | 32 |
| 33 // True, when a new set of draft preview data is required. |
| 34 const char kSettingGenerateDraftData[] = "generateDraftData"; |
| 35 |
33 // Page orientation: true for landscape, false for portrait. | 36 // Page orientation: true for landscape, false for portrait. |
34 const char kSettingLandscape[] = "landscape"; | 37 const char kSettingLandscape[] = "landscape"; |
35 | 38 |
36 // A page range. | 39 // A page range. |
37 const char kSettingPageRange[] = "pageRange"; | 40 const char kSettingPageRange[] = "pageRange"; |
38 | 41 |
39 // The first page of a page range. (1-based) | 42 // The first page of a page range. (1-based) |
40 const char kSettingPageRangeFrom[] = "from"; | 43 const char kSettingPageRangeFrom[] = "from"; |
41 | 44 |
42 // The last page of a page range. (1-based) | 45 // The last page of a page range. (1-based) |
43 const char kSettingPageRangeTo[] = "to"; | 46 const char kSettingPageRangeTo[] = "to"; |
44 | 47 |
45 // Printer name. | 48 // Printer name. |
46 const char kSettingPrinterName[] = "printerName"; | 49 const char kSettingPrinterName[] = "printerName"; |
47 | 50 |
48 // Print to PDF option: true if selected, false if not. | 51 // Print to PDF option: true if selected, false if not. |
49 const char kSettingPrintToPDF[] = "printToPDF"; | 52 const char kSettingPrintToPDF[] = "printToPDF"; |
50 | 53 |
51 // Indices used to represent first page, invalid page and complete | 54 // Indices used to represent first page, invalid page and complete |
52 // preview document. | 55 // preview document. |
53 const int FIRST_PAGE_INDEX = 0; | 56 const int FIRST_PAGE_INDEX = 0; |
54 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 57 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
55 const int INVALID_PAGE_INDEX = -2; | 58 const int INVALID_PAGE_INDEX = -2; |
56 | 59 |
57 } // namespace printing | 60 } // namespace printing |
OLD | NEW |