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

Unified Diff: chrome/browser/resources/print_preview/margin_settings.js

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
Index: chrome/browser/resources/print_preview/margin_settings.js
diff --git a/chrome/browser/resources/print_preview/margin_settings.js b/chrome/browser/resources/print_preview/margin_settings.js
index 5f48ed79436849ad7b99a61aa0332341f76dacc6..dfeac4abd3a31fb741ecfafb2330117b78975f1f 100644
--- a/chrome/browser/resources/print_preview/margin_settings.js
+++ b/chrome/browser/resources/print_preview/margin_settings.js
@@ -179,6 +179,20 @@ cr.define('print_preview', function() {
},
/**
+ * Gets the string representation of the margin type selected.
+ *
+ * @return {string}
+ */
+ get selectedMarginsAsString() {
+ if (this.isNoMarginsSelected())
+ return "noMargins";
+ else if (this.isCustomMarginsSelected())
+ return "customMargins";
+ else
+ return "defaultMargins";
+ },
+
+ /**
* @return {boolean} True if default margins are selected.
*/
isDefaultMarginsSelected: function() {
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/print_preview.js » ('j') | printing/print_job_constants.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698