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

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

Issue 10083060: [Print Preview]: Added code to support pdf fit to page functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 8 years, 8 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/header_footer_settings.js
diff --git a/chrome/browser/resources/print_preview/header_footer_settings.js b/chrome/browser/resources/print_preview/header_footer_settings.js
index 882829bc6db11a59ec23e6576075a27d2862a3b3..df74c67be5ed4d951bfb309f2e72f0e3433a4179 100644
--- a/chrome/browser/resources/print_preview/header_footer_settings.js
+++ b/chrome/browser/resources/print_preview/header_footer_settings.js
@@ -76,6 +76,10 @@ cr.define('print_preview', function() {
}
}
this.setVisible_(headerFooterApplies);
+ var headerFooterEvent = new cr.Event(
+ customEvents.HEADER_FOOTER_VISIBILITY_CHANGED);
+ headerFooterEvent.headerFooterApplies = headerFooterApplies;
+ document.dispatchEvent(headerFooterEvent);
},
/**
@@ -108,17 +112,14 @@ cr.define('print_preview', function() {
},
/**
- * Hides or shows |this.headerFooterOption|.
- * @param {boolean} visible True if |this.headerFooterOption| should be
+ * Hides or shows |this.headerFooterOption_|.
+ * @param {boolean} visible True if |this.headerFooterOption_| should be
* shown.
* @private
*/
setVisible_: function(visible) {
- if (visible)
- fadeInOption(this.headerFooterOption_);
- else
- fadeOutOption(this.headerFooterOption_);
- }
+ this.headerFooterOption_.style.display = visible ? 'block' : 'none';
+ },
};
return {

Powered by Google App Engine
This is Rietveld 408576698