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

Unified Diff: chrome/browser/resources/print_preview/page_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/page_settings.js
diff --git a/chrome/browser/resources/print_preview/page_settings.js b/chrome/browser/resources/print_preview/page_settings.js
index cd91cc36be0ffda120115f3e7caba673a99cf44f..499548d849aedd60929beacbb923323866c6c78f 100644
--- a/chrome/browser/resources/print_preview/page_settings.js
+++ b/chrome/browser/resources/print_preview/page_settings.js
@@ -259,8 +259,8 @@ cr.define('print_preview', function() {
*/
onSelectedPagesTextfieldChanged: function() {
this.validateSelectedPages_();
- cr.dispatchSimpleEvent(document, 'updateSummary');
- cr.dispatchSimpleEvent(document, 'updatePrintButton');
+ cr.dispatchSimpleEvent(document, customEvents.UPDATE_SUMMARY);
+ cr.dispatchSimpleEvent(document, customEvents.UPDATE_PRINT_BUTTON);
},
/**
@@ -278,8 +278,8 @@ cr.define('print_preview', function() {
// invalid entry in the page selection textfield still requires updating
// the print summary and print button.
if (!this.isPageSelectionValid() || !this.hasPageSelectionChanged_()) {
- cr.dispatchSimpleEvent(document, 'updateSummary');
- cr.dispatchSimpleEvent(document, 'updatePrintButton');
+ cr.dispatchSimpleEvent(document, customEvents.UPDATE_SUMMARY);
+ cr.dispatchSimpleEvent(document, customEvents.UPDATE_PRINT_BUTTON);
return;
}
requestPrintPreview();
« no previous file with comments | « chrome/browser/resources/print_preview/margins_ui_pair.js ('k') | chrome/browser/resources/print_preview/preview_area.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698