| 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 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ | 5 #ifndef PRINTING_PRINT_JOB_CONSTANTS_H_ |
| 6 #define PRINTING_PRINT_JOB_CONSTANTS_H_ | 6 #define PRINTING_PRINT_JOB_CONSTANTS_H_ |
| 7 | 7 |
| 8 namespace printing { | 8 namespace printing { |
| 9 | 9 |
| 10 extern const char kIsFirstRequest[]; | 10 extern const char kIsFirstRequest[]; |
| 11 extern const char kPreviewRequestID[]; | 11 extern const char kPreviewRequestID[]; |
| 12 extern const char kPreviewUIId[]; |
| 12 extern const char kSettingCloudPrintId[]; | 13 extern const char kSettingCloudPrintId[]; |
| 13 extern const char kSettingCollate[]; | 14 extern const char kSettingCollate[]; |
| 14 extern const char kSettingColor[]; | 15 extern const char kSettingColor[]; |
| 15 extern const char kSettingCopies[]; | 16 extern const char kSettingCopies[]; |
| 16 extern const char kSettingDeviceName[]; | 17 extern const char kSettingDeviceName[]; |
| 17 extern const char kSettingDuplexMode[]; | 18 extern const char kSettingDuplexMode[]; |
| 18 extern const char kSettingHeaderFooterEnabled[]; | 19 extern const char kSettingHeaderFooterEnabled[]; |
| 19 extern const char kSettingHeaderFooterFontFamilyName[]; | 20 extern const char kSettingHeaderFooterFontFamilyName[]; |
| 20 extern const char kSettingHeaderFooterFontName[]; | 21 extern const char kSettingHeaderFooterFontName[]; |
| 21 extern const int kSettingHeaderFooterFontSize; | 22 extern const int kSettingHeaderFooterFontSize; |
| 22 extern const float kSettingHeaderFooterHorizontalRegions; | 23 extern const float kSettingHeaderFooterHorizontalRegions; |
| 23 extern const float kSettingHeaderFooterInterstice; | 24 extern const float kSettingHeaderFooterInterstice; |
| 24 extern const char kSettingHeaderFooterDate[]; | 25 extern const char kSettingHeaderFooterDate[]; |
| 25 extern const char kSettingHeaderFooterTitle[]; | 26 extern const char kSettingHeaderFooterTitle[]; |
| 26 extern const char kSettingHeaderFooterURL[]; | 27 extern const char kSettingHeaderFooterURL[]; |
| 27 extern const char kSettingLandscape[]; | 28 extern const char kSettingLandscape[]; |
| 28 extern const char kSettingPageRange[]; | 29 extern const char kSettingPageRange[]; |
| 29 extern const char kSettingPageRangeFrom[]; | 30 extern const char kSettingPageRangeFrom[]; |
| 30 extern const char kSettingPageRangeTo[]; | 31 extern const char kSettingPageRangeTo[]; |
| 31 extern const char kSettingPrinterName[]; | 32 extern const char kSettingPrinterName[]; |
| 32 extern const char kSettingPrintToPDF[]; | 33 extern const char kSettingPrintToPDF[]; |
| 33 | 34 |
| 34 extern const int FIRST_PAGE_INDEX; | 35 extern const int FIRST_PAGE_INDEX; |
| 35 extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; | 36 extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
| 36 extern const int INVALID_PAGE_INDEX; | |
| 37 | 37 |
| 38 // Print job duplex mode values. | 38 // Print job duplex mode values. |
| 39 enum DuplexMode { | 39 enum DuplexMode { |
| 40 SIMPLEX, | 40 SIMPLEX, |
| 41 LONG_EDGE, | 41 LONG_EDGE, |
| 42 SHORT_EDGE, | 42 SHORT_EDGE, |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Specifies the horizontal alignment of the headers and footers. | 45 // Specifies the horizontal alignment of the headers and footers. |
| 46 enum HorizontalHeaderFooterPosition { | 46 enum HorizontalHeaderFooterPosition { |
| 47 LEFT, | 47 LEFT, |
| 48 CENTER, | 48 CENTER, |
| 49 RIGHT | 49 RIGHT |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 // Specifies the vertical alignment of the Headers and Footers. | 52 // Specifies the vertical alignment of the Headers and Footers. |
| 53 enum VerticalHeaderFooterPosition { | 53 enum VerticalHeaderFooterPosition { |
| 54 TOP, | 54 TOP, |
| 55 BOTTOM | 55 BOTTOM |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace printing | 58 } // namespace printing |
| 59 | 59 |
| 60 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ | 60 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |
| OLD | NEW |