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

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

Issue 8357009: Print Preview Cleanup: Creating enum with all custom events used. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Renaming, nts 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/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 7b93f1687b54a95c73a300b3f98f6c37552f1c95..900d840fd886002519bdefd57f61ecc4fbe4a0e2 100644
--- a/chrome/browser/resources/print_preview/header_footer_settings.js
+++ b/chrome/browser/resources/print_preview/header_footer_settings.js
@@ -42,7 +42,8 @@ cr.define('print_preview', function() {
addEventListeners_: function() {
this.headerFooterCheckbox_.onclick =
this.onHeaderFooterChanged_.bind(this);
- document.addEventListener('PDFLoaded', this.onPDFLoaded_.bind(this));
+ document.addEventListener(customEvents.PDF_LOADED,
+ this.onPDFLoaded_.bind(this));
},
/**
@@ -55,7 +56,7 @@ cr.define('print_preview', function() {
},
/**
- * Listener executing when a PDFLoaded event occurs.
+ * Listener executing when a |customEvents.PDF_LOADED| event occurs.
* @private
*/
onPDFLoaded_: function() {
« no previous file with comments | « chrome/browser/resources/print_preview/copies_settings.js ('k') | chrome/browser/resources/print_preview/layout_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698