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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 | 61 |
62 // Default font name for printing the headers and footers. | 62 // Default font name for printing the headers and footers. |
63 const char kSettingHeaderFooterFontName[] = "Helvetica"; | 63 const char kSettingHeaderFooterFontName[] = "Helvetica"; |
64 | 64 |
65 // Default font size for printing the headers and footers. | 65 // Default font size for printing the headers and footers. |
66 const int kSettingHeaderFooterFontSize = 8; | 66 const int kSettingHeaderFooterFontSize = 8; |
67 | 67 |
68 // Number of horizontal regions for headers and footers. | 68 // Number of horizontal regions for headers and footers. |
69 const float kSettingHeaderFooterHorizontalRegions = 3; | 69 const float kSettingHeaderFooterHorizontalRegions = 3; |
70 | 70 |
71 // Interstice or gap between different header footer components. | 71 // Interstice or gap between different header footer components. Hardcoded to |
72 // Hardcoded to 0.25cm = 1/10" = 7.2points. | 72 // about 0.5cm, match the value in PrintSettings::SetPrinterPrintableArea. |
73 const float kSettingHeaderFooterInterstice = 7.2f; | 73 const float kSettingHeaderFooterInterstice = 14.2f; |
Lei Zhang
2011/10/07 00:22:10
Shouldn't this be 14.4?
vandebo (ex-Chrome)
2011/10/07 00:29:50
Nope: http://www.google.com/search?q=.5cm+in+point
| |
74 | 74 |
75 // Key that specifies the date of the page that will be printed in the headers | 75 // Key that specifies the date of the page that will be printed in the headers |
76 // and footers. | 76 // and footers. |
77 const char kSettingHeaderFooterDate[] = "date"; | 77 const char kSettingHeaderFooterDate[] = "date"; |
78 | 78 |
79 // Key that specifies the title of the page that will be printed in the headers | 79 // Key that specifies the title of the page that will be printed in the headers |
80 // and footers. | 80 // and footers. |
81 const char kSettingHeaderFooterTitle[] = "title"; | 81 const char kSettingHeaderFooterTitle[] = "title"; |
82 | 82 |
83 // Key that specifies the URL of the page that will be printed in the headers | 83 // Key that specifies the URL of the page that will be printed in the headers |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 const char kSettingPrinterName[] = "printerName"; | 115 const char kSettingPrinterName[] = "printerName"; |
116 | 116 |
117 // Print to PDF option: true if selected, false if not. | 117 // Print to PDF option: true if selected, false if not. |
118 const char kSettingPrintToPDF[] = "printToPDF"; | 118 const char kSettingPrintToPDF[] = "printToPDF"; |
119 | 119 |
120 // Indices used to represent first preview page and complete preview document. | 120 // Indices used to represent first preview page and complete preview document. |
121 const int FIRST_PAGE_INDEX = 0; | 121 const int FIRST_PAGE_INDEX = 0; |
122 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; | 122 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; |
123 | 123 |
124 } // namespace printing | 124 } // namespace printing |
OLD | NEW |