| 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 kPreviewUIAddr[]; |
| 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 int kSettingHeaderFooterCharacterSpacing; | 20 extern const int kSettingHeaderFooterCharacterSpacing; |
| 20 extern const char kSettingHeaderFooterFontFamilyName[]; | 21 extern const char kSettingHeaderFooterFontFamilyName[]; |
| 21 extern const char kSettingHeaderFooterFontName[]; | 22 extern const char kSettingHeaderFooterFontName[]; |
| 22 extern const int kSettingHeaderFooterFontSize; | 23 extern const int kSettingHeaderFooterFontSize; |
| 23 extern const float kSettingHeaderFooterHorizontalRegions; | 24 extern const float kSettingHeaderFooterHorizontalRegions; |
| 24 extern const float kSettingHeaderFooterInterstice; | 25 extern const float kSettingHeaderFooterInterstice; |
| 25 extern const char kSettingHeaderFooterDate[]; | 26 extern const char kSettingHeaderFooterDate[]; |
| 26 extern const char kSettingHeaderFooterTitle[]; | 27 extern const char kSettingHeaderFooterTitle[]; |
| 27 extern const char kSettingHeaderFooterURL[]; | 28 extern const char kSettingHeaderFooterURL[]; |
| 28 extern const char kSettingLandscape[]; | 29 extern const char kSettingLandscape[]; |
| 29 extern const char kSettingPageRange[]; | 30 extern const char kSettingPageRange[]; |
| 30 extern const char kSettingPageRangeFrom[]; | 31 extern const char kSettingPageRangeFrom[]; |
| 31 extern const char kSettingPageRangeTo[]; | 32 extern const char kSettingPageRangeTo[]; |
| 32 extern const char kSettingPrinterName[]; | 33 extern const char kSettingPrinterName[]; |
| 33 extern const char kSettingPrintToPDF[]; | 34 extern const char kSettingPrintToPDF[]; |
| 34 | 35 |
| 35 extern const int FIRST_PAGE_INDEX; | 36 extern const int FIRST_PAGE_INDEX; |
| 36 extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; | 37 extern const int COMPLETE_PREVIEW_DOCUMENT_INDEX; |
| 37 extern const int INVALID_PAGE_INDEX; | |
| 38 | 38 |
| 39 // Print job duplex mode values. | 39 // Print job duplex mode values. |
| 40 enum DuplexMode { | 40 enum DuplexMode { |
| 41 SIMPLEX, | 41 SIMPLEX, |
| 42 LONG_EDGE, | 42 LONG_EDGE, |
| 43 SHORT_EDGE, | 43 SHORT_EDGE, |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 // Specifies the horizontal alignment of the headers and footers. | 46 // Specifies the horizontal alignment of the headers and footers. |
| 47 enum HorizontalHeaderFooterPosition { | 47 enum HorizontalHeaderFooterPosition { |
| 48 LEFT, | 48 LEFT, |
| 49 CENTER, | 49 CENTER, |
| 50 RIGHT | 50 RIGHT |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // Specifies the vertical alignment of the Headers and Footers. | 53 // Specifies the vertical alignment of the Headers and Footers. |
| 54 enum VerticalHeaderFooterPosition { | 54 enum VerticalHeaderFooterPosition { |
| 55 TOP, | 55 TOP, |
| 56 BOTTOM | 56 BOTTOM |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace printing | 59 } // namespace printing |
| 60 | 60 |
| 61 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ | 61 #endif // PRINTING_PRINT_JOB_CONSTANTS_H_ |
| OLD | NEW |