| 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 25 matching lines...) Expand all Loading... |
| 36 // Key that specifies if the default margins have been selected or not. | 36 // Key that specifies if the default margins have been selected or not. |
| 37 // True if selected, false if not. | 37 // True if selected, false if not. |
| 38 const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected"; | 38 const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected"; |
| 39 | 39 |
| 40 // Device name: Unique printer identifier. | 40 // Device name: Unique printer identifier. |
| 41 const char kSettingDeviceName[] = "deviceName"; | 41 const char kSettingDeviceName[] = "deviceName"; |
| 42 | 42 |
| 43 // Print job duplex mode. | 43 // Print job duplex mode. |
| 44 const char kSettingDuplexMode[] = "duplex"; | 44 const char kSettingDuplexMode[] = "duplex"; |
| 45 | 45 |
| 46 // True, when a new set of draft preview data is required. |
| 47 const char kSettingGenerateDraftData[] = "generateDraftData"; |
| 48 |
| 46 // Option to print headers and Footers: true if selected, false if not. | 49 // Option to print headers and Footers: true if selected, false if not. |
| 47 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled"; | 50 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled"; |
| 48 | 51 |
| 49 // Default character spacing for text while printing headers and footers. | 52 // Default character spacing for text while printing headers and footers. |
| 50 // (For CoreGraphics only). | 53 // (For CoreGraphics only). |
| 51 const int kSettingHeaderFooterCharacterSpacing = 0; | 54 const int kSettingHeaderFooterCharacterSpacing = 0; |
| 52 | 55 |
| 53 // Default font family name for printing the headers and footers. | 56 // Default font family name for printing the headers and footers. |
| 54 const char kSettingHeaderFooterFontFamilyName[] = "sans"; | 57 const char kSettingHeaderFooterFontFamilyName[] = "sans"; |
| 55 | 58 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const char kSettingPrinterName[] = "printerName"; | 112 const char kSettingPrinterName[] = "printerName"; |
| 110 | 113 |
| 111 // Print to PDF option: true if selected, false if not. | 114 // Print to PDF option: true if selected, false if not. |
| 112 const char kSettingPrintToPDF[] = "printToPDF"; | 115 const char kSettingPrintToPDF[] = "printToPDF"; |
| 113 | 116 |
| 114 // Indices used to represent first preview page and complete preview document. | 117 // Indices used to represent first preview page and complete preview document. |
| 115 const int FIRST_PAGE_INDEX = 0; | 118 const int FIRST_PAGE_INDEX = 0; |
| 116 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 119 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
| 117 | 120 |
| 118 } // namespace printing | 121 } // namespace printing |
| OLD | NEW |