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

Side by Side Diff: printing/print_job_constants.cc

Issue 11359020: Print headers and footers with WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux Created 8 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Option to fit source page contents to printer paper size: true if 48 // Option to fit source page contents to printer paper size: true if
49 // selected else false. 49 // selected else false.
50 const char kSettingFitToPageEnabled[] = "fitToPageEnabled"; 50 const char kSettingFitToPageEnabled[] = "fitToPageEnabled";
51 51
52 // True, when a new set of draft preview data is required. 52 // True, when a new set of draft preview data is required.
53 const char kSettingGenerateDraftData[] = "generateDraftData"; 53 const char kSettingGenerateDraftData[] = "generateDraftData";
54 54
55 // Option to print headers and Footers: true if selected, false if not. 55 // Option to print headers and Footers: true if selected, false if not.
56 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled"; 56 const char kSettingHeaderFooterEnabled[] = "headerFooterEnabled";
57 57
58 // Default character spacing for text while printing headers and footers.
59 // (For CoreGraphics only).
60 const int kSettingHeaderFooterCharacterSpacing = 0;
61
62 // Default font family name for printing the headers and footers.
63 const char kSettingHeaderFooterFontFamilyName[] = "sans";
64
65 // Default font name for printing the headers and footers.
66 const char kSettingHeaderFooterFontName[] = "Helvetica";
67
68 // Default font size for printing the headers and footers.
69 const int kSettingHeaderFooterFontSize = 8;
70
71 // Number of horizontal regions for headers and footers.
72 const float kSettingHeaderFooterHorizontalRegions = 3;
73
74 // Interstice or gap between different header footer components. Hardcoded to 58 // Interstice or gap between different header footer components. Hardcoded to
75 // about 0.5cm, match the value in PrintSettings::SetPrinterPrintableArea. 59 // about 0.5cm, match the value in PrintSettings::SetPrinterPrintableArea.
76 const float kSettingHeaderFooterInterstice = 14.2f; 60 const float kSettingHeaderFooterInterstice = 14.2f;
77 61
78 // Key that specifies the date of the page that will be printed in the headers 62 // Key that specifies the date of the page that will be printed in the headers
79 // and footers. 63 // and footers.
80 const char kSettingHeaderFooterDate[] = "date"; 64 const char kSettingHeaderFooterDate[] = "date";
81 65
82 // Key that specifies the title of the page that will be printed in the headers 66 // Key that specifies the title of the page that will be printed in the headers
83 // and footers. 67 // and footers.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 const char kGreyscale[] = "Greyscale"; 136 const char kGreyscale[] = "Greyscale";
153 const char kMonochrome[] = "Monochrome"; 137 const char kMonochrome[] = "Monochrome";
154 const char kNormal[] = "Normal"; 138 const char kNormal[] = "Normal";
155 const char kNormalGray[] = "Normal.Gray"; 139 const char kNormalGray[] = "Normal.Gray";
156 const char kRGB[] = "RGB"; 140 const char kRGB[] = "RGB";
157 const char kRGBA[] = "RGBA"; 141 const char kRGBA[] = "RGBA";
158 const char kRGB16[] = "RGB16"; 142 const char kRGB16[] = "RGB16";
159 #endif 143 #endif
160 144
161 } // namespace printing 145 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698