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

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: Indent Fix 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 // Print using cloud print: true if selected, false if not. 9 // Print using cloud print: true if selected, false if not.
10 const char kSettingCloudPrintId[] = "cloudPrintID"; 10 const char kSettingCloudPrintId[] = "cloudPrintID";
11 11
12 // Print job setting 'collate'. 12 // Print job setting 'collate'.
13 const char kSettingCollate[] = "collate"; 13 const char kSettingCollate[] = "collate";
14 14
15 // Print out color: true for color, false for grayscale. 15 // Print out color: true for color, false for grayscale.
16 const char kSettingColor[] = "color"; 16 const char kSettingColor[] = "color";
17 17
18 // Number of copies. 18 // Number of copies.
19 const char kSettingCopies[] = "copies"; 19 const char kSettingCopies[] = "copies";
20 20
21 // Device name: Unique printer identifier. 21 // Device name: Unique printer identifier.
22 const char kSettingDeviceName[] = "deviceName"; 22 const char kSettingDeviceName[] = "deviceName";
23 23
24 // Print job duplex mode. 24 // Print job duplex mode.
25 const char kSettingDuplexMode[] = "duplex"; 25 const char kSettingDuplexMode[] = "duplex";
26 26
27 // Option to print Headers and Footers: true if selected, false if not.
28 const char kSettingHeaderFooter[] = "headerFooter";
29
30 // Interstice or gap between different header footer components.
31 // Hardcoded to 0.25cm = 1/10" = 7.2points
32 extern const float kSettingHeaderFooterInterstice = 7.2f;
33
34 // Key that specifies the title of the page that will be printed in the headers
35 // and footers
36 extern const char kSettingHeaderFooterTitle[] = "title";
37
38 // Key that specifies the URL of the page that will be printed in the headers
39 // and footers
40 extern const char kSettingHeaderFooterURL[] = "url";
41
27 // Page orientation: true for landscape, false for portrait. 42 // Page orientation: true for landscape, false for portrait.
28 const char kSettingLandscape[] = "landscape"; 43 const char kSettingLandscape[] = "landscape";
29 44
30 // A page range. 45 // A page range.
31 const char kSettingPageRange[] = "pageRange"; 46 const char kSettingPageRange[] = "pageRange";
32 47
33 // The first page of a page range. (1-based) 48 // The first page of a page range. (1-based)
34 const char kSettingPageRangeFrom[] = "from"; 49 const char kSettingPageRangeFrom[] = "from";
35 50
36 // The last page of a page range. (1-based) 51 // The last page of a page range. (1-based)
37 const char kSettingPageRangeTo[] = "to"; 52 const char kSettingPageRangeTo[] = "to";
38 53
39 // Printer name. 54 // Printer name.
40 const char kSettingPrinterName[] = "printerName"; 55 const char kSettingPrinterName[] = "printerName";
41 56
42 // Print to PDF option: true if selected, false if not. 57 // Print to PDF option: true if selected, false if not.
43 const char kSettingPrintToPDF[] = "printToPDF"; 58 const char kSettingPrintToPDF[] = "printToPDF";
44 59
45 } // namespace printing 60 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698