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 18 matching lines...) Expand all Loading... | |
29 | 29 |
30 // Key that specifies the height of the content area of the page. | 30 // Key that specifies the height of the content area of the page. |
31 const char kSettingContentHeight[] = "contentHeight"; | 31 const char kSettingContentHeight[] = "contentHeight"; |
32 | 32 |
33 // Key that specifies the width of the content area of the page. | 33 // Key that specifies the width of the content area of the page. |
34 const char kSettingContentWidth[] = "contentWidth"; | 34 const char kSettingContentWidth[] = "contentWidth"; |
35 | 35 |
36 // Number of copies. | 36 // Number of copies. |
37 const char kSettingCopies[] = "copies"; | 37 const char kSettingCopies[] = "copies"; |
38 | 38 |
39 // Key that specifies if the default margins have been selected or not. | |
40 // True if selected, false if not. | |
41 const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected"; | |
42 | |
43 // Device name: Unique printer identifier. | 39 // Device name: Unique printer identifier. |
44 const char kSettingDeviceName[] = "deviceName"; | 40 const char kSettingDeviceName[] = "deviceName"; |
45 | 41 |
46 // Print job duplex mode. | 42 // Print job duplex mode. |
47 const char kSettingDuplexMode[] = "duplex"; | 43 const char kSettingDuplexMode[] = "duplex"; |
48 | 44 |
49 // True, when a new set of draft preview data is required. | 45 // True, when a new set of draft preview data is required. |
50 const char kSettingGenerateDraftData[] = "generateDraftData"; | 46 const char kSettingGenerateDraftData[] = "generateDraftData"; |
51 | 47 |
52 // Option to print headers and Footers: true if selected, false if not. | 48 // Option to print headers and Footers: true if selected, false if not. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 | 88 |
93 // Key that specifies the left margin of the page. | 89 // Key that specifies the left margin of the page. |
94 const char kSettingMarginLeft[] = "marginLeft"; | 90 const char kSettingMarginLeft[] = "marginLeft"; |
95 | 91 |
96 // Key that specifies the right margin of the page. | 92 // Key that specifies the right margin of the page. |
97 const char kSettingMarginRight[] = "marginRight"; | 93 const char kSettingMarginRight[] = "marginRight"; |
98 | 94 |
99 // Key that specifies the top margin of the page. | 95 // Key that specifies the top margin of the page. |
100 const char kSettingMarginTop[] = "marginTop"; | 96 const char kSettingMarginTop[] = "marginTop"; |
101 | 97 |
102 // Key that specifies the array of custom margins as set by the user. | 98 // Key that specifies the dictionary of custom margins as set by the user. |
103 const char kSettingMargins[] = "margins"; | 99 const char kSettingMarginsCustom[] = "marginsCustom"; |
100 | |
101 // Key that specifies the type of margins to use. | |
102 const char kSettingMarginsType[] = "marginsType"; | |
103 | |
104 // Value for kSettingMarginsType specifying custom margins. | |
105 const char kSettingMarginsTypeCustom[] = "customMargins"; | |
dpapad
2011/10/12 18:04:22
Do kSettingsMarginsType{Custom|None|Default} have
vandebo (ex-Chrome)
2011/10/12 20:50:04
Nope, changed to an int (taken from an enum, which
| |
106 | |
107 // Value for kSettingMarginsType specifying default margins. | |
108 const char kSettingMarginsTypeDefault[] = "defaultMargins"; | |
109 | |
110 // Value for kSettingMarginsType specifying no margins. | |
111 const char kSettingMarginsTypeNone[] = "noMargins"; | |
112 | |
113 // Value for kSettingMarginsType specifying margins set to the printable area. | |
114 const char kSettingMarginsTypePrintableArea[] = "printableAreaMargins"; | |
104 | 115 |
105 // A page range. | 116 // A page range. |
106 const char kSettingPageRange[] = "pageRange"; | 117 const char kSettingPageRange[] = "pageRange"; |
107 | 118 |
108 // The first page of a page range. (1-based) | 119 // The first page of a page range. (1-based) |
109 const char kSettingPageRangeFrom[] = "from"; | 120 const char kSettingPageRangeFrom[] = "from"; |
110 | 121 |
111 // The last page of a page range. (1-based) | 122 // The last page of a page range. (1-based) |
112 const char kSettingPageRangeTo[] = "to"; | 123 const char kSettingPageRangeTo[] = "to"; |
113 | 124 |
114 // Printer name. | 125 // Printer name. |
115 const char kSettingPrinterName[] = "printerName"; | 126 const char kSettingPrinterName[] = "printerName"; |
116 | 127 |
117 // Print to PDF option: true if selected, false if not. | 128 // Print to PDF option: true if selected, false if not. |
118 const char kSettingPrintToPDF[] = "printToPDF"; | 129 const char kSettingPrintToPDF[] = "printToPDF"; |
119 | 130 |
120 // Indices used to represent first preview page and complete preview document. | 131 // Indices used to represent first preview page and complete preview document. |
121 const int FIRST_PAGE_INDEX = 0; | 132 const int FIRST_PAGE_INDEX = 0; |
122 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 133 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
123 | 134 |
124 } // namespace printing | 135 } // namespace printing |
OLD | NEW |