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

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: Custom length strings being printed Created 9 years, 5 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
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 // Unique ID sent along every preview request. 9 // Unique ID sent along every preview request.
10 const char kPreviewRequestID[] = "requestID"; 10 const char kPreviewRequestID[] = "requestID";
11 11
12 // Print using cloud print: true if selected, false if not. 12 // Print using cloud print: true if selected, false if not.
13 const char kSettingCloudPrintId[] = "cloudPrintID"; 13 const char kSettingCloudPrintId[] = "cloudPrintID";
14 14
15 // Print job setting 'collate'. 15 // Print job setting 'collate'.
16 const char kSettingCollate[] = "collate"; 16 const char kSettingCollate[] = "collate";
17 17
18 // Print out color: true for color, false for grayscale. 18 // Print out color: true for color, false for grayscale.
19 const char kSettingColor[] = "color"; 19 const char kSettingColor[] = "color";
20 20
21 // Number of copies. 21 // Number of copies.
22 const char kSettingCopies[] = "copies"; 22 const char kSettingCopies[] = "copies";
23 23
24 // Device name: Unique printer identifier. 24 // Device name: Unique printer identifier.
25 const char kSettingDeviceName[] = "deviceName"; 25 const char kSettingDeviceName[] = "deviceName";
26 26
27 // Print job duplex mode. 27 // Print job duplex mode.
28 const char kSettingDuplexMode[] = "duplex"; 28 const char kSettingDuplexMode[] = "duplex";
29 29
30 // Option to print Headers and Footers: true if selected, false if not.
31 const char kSettingHeaderFooter[] = "headerFooter";
32
33 // Default Font size for printing the headers and footers.
34 extern const int kSettingHeaderFooterFontSize = 8;
35
36 // Number of horizontal regions for headers and footers.
37 extern const float kSettingHeaderFooterHorizontalRegions = 3;
vandebo (ex-Chrome) 2011/07/19 21:31:20 Do we put anything in the center? Maybe set this
Aayush Kumar 2011/07/21 21:58:53 The title in the header is printed in the center.
38
39 // Interstice or gap between different header footer components.
40 // Hardcoded to 0.25cm = 1/10" = 7.2points.
41 extern const float kSettingHeaderFooterInterstice = 7.2f;
42
43 // Key that specifies the title of the page that will be printed in the headers
44 // and footers.
45 extern const char kSettingHeaderFooterTitle[] = "title";
46
47 // Key that specifies the URL of the page that will be printed in the headers
48 // and footers.
49 extern const char kSettingHeaderFooterURL[] = "url";
50
30 // Page orientation: true for landscape, false for portrait. 51 // Page orientation: true for landscape, false for portrait.
31 const char kSettingLandscape[] = "landscape"; 52 const char kSettingLandscape[] = "landscape";
32 53
33 // A page range. 54 // A page range.
34 const char kSettingPageRange[] = "pageRange"; 55 const char kSettingPageRange[] = "pageRange";
35 56
36 // The first page of a page range. (1-based) 57 // The first page of a page range. (1-based)
37 const char kSettingPageRangeFrom[] = "from"; 58 const char kSettingPageRangeFrom[] = "from";
38 59
39 // The last page of a page range. (1-based) 60 // The last page of a page range. (1-based)
40 const char kSettingPageRangeTo[] = "to"; 61 const char kSettingPageRangeTo[] = "to";
41 62
42 // Printer name. 63 // Printer name.
43 const char kSettingPrinterName[] = "printerName"; 64 const char kSettingPrinterName[] = "printerName";
44 65
45 // Print to PDF option: true if selected, false if not. 66 // Print to PDF option: true if selected, false if not.
46 const char kSettingPrintToPDF[] = "printToPDF"; 67 const char kSettingPrintToPDF[] = "printToPDF";
47 68
48 } // namespace printing 69 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698