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

Unified Diff: printing/print_job_constants.cc

Issue 8227034: Change print setting conventions for margins to support more options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and a little cleanup Created 9 years, 2 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
« no previous file with comments | « printing/print_job_constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/print_job_constants.cc
diff --git a/printing/print_job_constants.cc b/printing/print_job_constants.cc
index 3efb488044e9a9b1334085f88401a059ab2aa7ba..6a1057343991cfeb6a0301d5e391d665da16841e 100644
--- a/printing/print_job_constants.cc
+++ b/printing/print_job_constants.cc
@@ -36,10 +36,6 @@ const char kSettingContentWidth[] = "contentWidth";
// Number of copies.
const char kSettingCopies[] = "copies";
-// Key that specifies if the default margins have been selected or not.
-// True if selected, false if not.
-const char kSettingDefaultMarginsSelected[] = "defaultMarginsSelected";
-
// Device name: Unique printer identifier.
const char kSettingDeviceName[] = "deviceName";
@@ -99,8 +95,23 @@ const char kSettingMarginRight[] = "marginRight";
// Key that specifies the top margin of the page.
const char kSettingMarginTop[] = "marginTop";
-// Key that specifies the array of custom margins as set by the user.
-const char kSettingMargins[] = "margins";
+// Key that specifies the dictionary of custom margins as set by the user.
+const char kSettingMarginsCustom[] = "marginsCustom";
+
+// Key that specifies the type of margins to use.
+const char kSettingMarginsType[] = "marginsType";
+
+// Value for kSettingMarginsType specifying custom margins.
+const char kSettingMarginsTypeCustom[] = "customMargins";
dpapad 2011/10/12 18:04:22 Do kSettingsMarginsType{Custom|None|Default} have
vandebo (ex-Chrome) 2011/10/12 20:50:04 Nope, changed to an int (taken from an enum, which
+
+// Value for kSettingMarginsType specifying default margins.
+const char kSettingMarginsTypeDefault[] = "defaultMargins";
+
+// Value for kSettingMarginsType specifying no margins.
+const char kSettingMarginsTypeNone[] = "noMargins";
+
+// Value for kSettingMarginsType specifying margins set to the printable area.
+const char kSettingMarginsTypePrintableArea[] = "printableAreaMargins";
// A page range.
const char kSettingPageRange[] = "pageRange";
« no previous file with comments | « printing/print_job_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698