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

Side by Side Diff: printing/print_job_constants.cc

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added SK_API to vector platform device skia 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";
Vitaly Buka (NO REVIEWS) 2012/10/09 06:05:24 I have question to author and reviewers. Why do we
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
33 // Page orientation: true for landscape, false for portrait. 64 // Page orientation: true for landscape, false for portrait.
34 const char kSettingLandscape[] = "landscape"; 65 const char kSettingLandscape[] = "landscape";
35 66
36 // A page range. 67 // A page range.
37 const char kSettingPageRange[] = "pageRange"; 68 const char kSettingPageRange[] = "pageRange";
38 69
39 // The first page of a page range. (1-based) 70 // The first page of a page range. (1-based)
40 const char kSettingPageRangeFrom[] = "from"; 71 const char kSettingPageRangeFrom[] = "from";
41 72
42 // The last page of a page range. (1-based) 73 // The last page of a page range. (1-based)
43 const char kSettingPageRangeTo[] = "to"; 74 const char kSettingPageRangeTo[] = "to";
44 75
45 // Printer name. 76 // Printer name.
46 const char kSettingPrinterName[] = "printerName"; 77 const char kSettingPrinterName[] = "printerName";
47 78
48 // Print to PDF option: true if selected, false if not. 79 // Print to PDF option: true if selected, false if not.
49 const char kSettingPrintToPDF[] = "printToPDF"; 80 const char kSettingPrintToPDF[] = "printToPDF";
50 81
51 // Indices used to represent first page, invalid page and complete 82 // Indices used to represent first page, invalid page and complete
52 // preview document. 83 // preview document.
53 const int FIRST_PAGE_INDEX = 0; 84 const int FIRST_PAGE_INDEX = 0;
54 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1; 85 const int COMPLETE_PREVIEW_DOCUMENT_INDEX = -1;
55 const int INVALID_PAGE_INDEX = -2; 86 const int INVALID_PAGE_INDEX = -2;
56 87
57 } // namespace printing 88 } // 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