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

Unified 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: Separate CL for struct change. Changes as per review comments. 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 side-by-side diff with in-line comments
Download patch
Index: printing/print_job_constants.cc
diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc
index f0e5e77ca851bb0c2364e5b8eef98706a7e3ece6..9c4d7d4117d219c9aa21d2ad2842ee34876e0388 100644
--- a/printing/print_job_constants.cc
+++ b/printing/print_job_constants.cc
@@ -27,6 +27,30 @@ const char kSettingDeviceName[] = "deviceName";
// Print job duplex mode.
const char kSettingDuplexMode[] = "duplex";
+// Option to print Headers and Footers: true if selected, false if not.
+const char kSettingHeaderFooter[] = "headerFooter";
+
+// Default Font name for printing the headers and footers.
dpapad 2011/07/25 15:40:01 nit: s/Font/font
Aayush Kumar 2011/07/25 18:37:23 Done.
+extern const char kSettingHeaderFooterFontName[] = "Helvetica";
+
+// Default Font size for printing the headers and footers.
dpapad 2011/07/25 15:40:01 nit: s/Font/font
Aayush Kumar 2011/07/25 18:37:23 Done.
+extern const int kSettingHeaderFooterFontSize = 8;
+
+// Number of horizontal regions for headers and footers.
+extern const float kSettingHeaderFooterHorizontalRegions = 3;
+
+// Interstice or gap between different header footer components.
dpapad 2011/07/25 15:40:01 Nit: More can fit on this line.
Aayush Kumar 2011/07/25 18:37:23 I purposely gave it a line break to make it easier
+// Hardcoded to 0.25cm = 1/10" = 7.2points.
+extern const float kSettingHeaderFooterInterstice = 7.2f;
+
+// Key that specifies the title of the page that will be printed in the headers
+// and footers.
+extern const char kSettingHeaderFooterTitle[] = "title";
+
+// Key that specifies the URL of the page that will be printed in the headers
+// and footers.
+extern const char kSettingHeaderFooterURL[] = "url";
+
// Page orientation: true for landscape, false for portrait.
const char kSettingLandscape[] = "landscape";

Powered by Google App Engine
This is Rietveld 408576698