summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/print_preview/header_footer_settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/print_preview/header_footer_settings.js')
-rw-r--r--chrome/browser/resources/print_preview/header_footer_settings.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/resources/print_preview/header_footer_settings.js b/chrome/browser/resources/print_preview/header_footer_settings.js
index f1155d0..02776c5 100644
--- a/chrome/browser/resources/print_preview/header_footer_settings.js
+++ b/chrome/browser/resources/print_preview/header_footer_settings.js
@@ -37,6 +37,15 @@ cr.define('print_preview', function() {
},
/**
+ * Sets the state of the headers footers checkbox.
+ * @param {boolean} checked True if the headers footers checkbox shoule be
+ * checked, false if not.
+ */
+ setChecked: function(checked) {
+ this.headerFooterCheckbox_.checked = checked;
+ },
+
+ /**
* Adding listeners to header footer related controls.
* @private
*/