| 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 | |
| 33 // Page orientation: true for landscape, false for portrait. | 30 // Page orientation: true for landscape, false for portrait. |
| 34 const char kSettingLandscape[] = "landscape"; | 31 const char kSettingLandscape[] = "landscape"; |
| 35 | 32 |
| 36 // A page range. | 33 // A page range. |
| 37 const char kSettingPageRange[] = "pageRange"; | 34 const char kSettingPageRange[] = "pageRange"; |
| 38 | 35 |
| 39 // The first page of a page range. (1-based) | 36 // The first page of a page range. (1-based) |
| 40 const char kSettingPageRangeFrom[] = "from"; | 37 const char kSettingPageRangeFrom[] = "from"; |
| 41 | 38 |
| 42 // The last page of a page range. (1-based) | 39 // The last page of a page range. (1-based) |
| 43 const char kSettingPageRangeTo[] = "to"; | 40 const char kSettingPageRangeTo[] = "to"; |
| 44 | 41 |
| 45 // Printer name. | 42 // Printer name. |
| 46 const char kSettingPrinterName[] = "printerName"; | 43 const char kSettingPrinterName[] = "printerName"; |
| 47 | 44 |
| 48 // Print to PDF option: true if selected, false if not. | 45 // Print to PDF option: true if selected, false if not. |
| 49 const char kSettingPrintToPDF[] = "printToPDF"; | 46 const char kSettingPrintToPDF[] = "printToPDF"; |
| 50 | 47 |
| 51 // Indices used to represent first page, invalid page and complete | 48 // Indices used to represent first page, invalid page and complete |
| 52 // preview document. | 49 // preview document. |
| 53 const int FIRST_PAGE_INDEX = 0; | 50 const int FIRST_PAGE_INDEX = 0; |
| 54 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 51 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
| 55 const int INVALID_PAGE_INDEX = -2; | 52 const int INVALID_PAGE_INDEX = -2; |
| 56 | 53 |
| 57 } // namespace printing | 54 } // namespace printing |
| OLD | NEW |