Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: printing/print_job_constants.cc

Issue 7670045: Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for Skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/print_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 23
24 // Number of copies. 24 // Number of copies.
25 const char kSettingCopies[] = "copies"; 25 const char kSettingCopies[] = "copies";
26 26
27 // Device name: Unique printer identifier. 27 // Device name: Unique printer identifier.
28 const char kSettingDeviceName[] = "deviceName"; 28 const char kSettingDeviceName[] = "deviceName";
29 29
30 // Print job duplex mode. 30 // Print job duplex mode.
31 const char kSettingDuplexMode[] = "duplex"; 31 const char kSettingDuplexMode[] = "duplex";
32 32
33 // Option to print headers and Footers: true if selected, false if not.
34 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
35
36 // Default font family name for printing the headers and footers.
37 const char kSettingHeaderFooterFontFamilyName[] = "sans";
38
39 // Default font name for printing the headers and footers.
40 const char kSettingHeaderFooterFontName[] = "Helvetica";
41
42 // Default font size for printing the headers and footers.
43 const int kSettingHeaderFooterFontSize = 8;
44
45 // Number of horizontal regions for headers and footers.
46 const float kSettingHeaderFooterHorizontalRegions = 3;
47
48 // Interstice or gap between different header footer components.
49 // Hardcoded to 0.25cm = 1/10" = 7.2points.
50 const float kSettingHeaderFooterInterstice = 7.2f;
51
52 // Key that specifies the date of the page that will be printed in the headers
53 // and footers.
54 const char kSettingHeaderFooterDate[] = "date";
55
56 // Key that specifies the title of the page that will be printed in the headers
57 // and footers.
58 const char kSettingHeaderFooterTitle[] = "title";
59
60 // Key that specifies the URL of the page that will be printed in the headers
61 // and footers.
62 const char kSettingHeaderFooterURL[] = "url";
63
64 // Page orientation: true for landscape, false for portrait. 33 // Page orientation: true for landscape, false for portrait.
65 const char kSettingLandscape[] = "landscape"; 34 const char kSettingLandscape[] = "landscape";
66 35
67 // A page range. 36 // A page range.
68 const char kSettingPageRange[] = "pageRange"; 37 const char kSettingPageRange[] = "pageRange";
69 38
70 // The first page of a page range. (1-based) 39 // The first page of a page range. (1-based)
71 const char kSettingPageRangeFrom[] = "from"; 40 const char kSettingPageRangeFrom[] = "from";
72 41
73 // The last page of a page range. (1-based) 42 // The last page of a page range. (1-based)
74 const char kSettingPageRangeTo[] = "to"; 43 const char kSettingPageRangeTo[] = "to";
75 44
76 // Printer name. 45 // Printer name.
77 const char kSettingPrinterName[] = "printerName"; 46 const char kSettingPrinterName[] = "printerName";
78 47
79 // Print to PDF option: true if selected, false if not. 48 // Print to PDF option: true if selected, false if not.
80 const char kSettingPrintToPDF[] = "printToPDF"; 49 const char kSettingPrintToPDF[] = "printToPDF";
81 50
82 // Indices used to represent first page, invalid page and complete 51 // Indices used to represent first page, invalid page and complete
83 // preview document. 52 // preview document.
84 const int FIRST_PAGE_INDEX = 0; 53 const int FIRST_PAGE_INDEX = 0;
85 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; 54 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
86 const int INVALID_PAGE_INDEX = -2; 55 const int INVALID_PAGE_INDEX = -2;
87 56
88 } // namespace printing 57 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_job_constants.h ('k') | printing/print_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698