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

Unified Diff: chrome/browser/resources/print_preview/color_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
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/copies_settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/print_preview/color_settings.js
diff --git a/chrome/browser/resources/print_preview/color_settings.js b/chrome/browser/resources/print_preview/color_settings.js
index f0f6885a90543f358b541faa0f34f90eb3d15625..c3d7328259613b399b6d83757254bde011c09271 100644
--- a/chrome/browser/resources/print_preview/color_settings.js
+++ b/chrome/browser/resources/print_preview/color_settings.js
@@ -62,13 +62,14 @@ cr.define('print_preview', function() {
this.bwRadioButton_.onclick = function() {
setColor(false);
};
- document.addEventListener('PDFLoaded', this.onPDFLoaded_.bind(this));
- document.addEventListener('printerCapabilitiesUpdated',
+ document.addEventListener(customEvents.PDF_LOADED,
+ this.onPDFLoaded_.bind(this));
+ document.addEventListener(customEvents.PRINTER_CAPABILITIES_UPDATED,
this.onPrinterCapabilitiesUpdated_.bind(this));
},
/**
- * Listener triggered when a printerCapabilitiesUpdated event occurs.
+ * Executes when a |customEvents.PRINTER_CAPABILITIES_UPDATED| event occurs.
* @private
*/
onPrinterCapabilitiesUpdated_: function(e) {
@@ -97,7 +98,7 @@ cr.define('print_preview', function() {
},
/**
- * Executes when a PDFLoaded event occurs.
+ * Executes when a |customEvents.PDF_LOADED| event occurs.
* @private
*/
onPDFLoaded_: function() {
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/copies_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698