| Index: chrome/browser/resources/print_preview/margin_textbox.js
|
| diff --git a/chrome/browser/resources/print_preview/margin_textbox.js b/chrome/browser/resources/print_preview/margin_textbox.js
|
| index 3f3e80d344a6c800888498f13df1fba3358a1be7..7132ae0798dc7fe24cf07e793ac0d199bcf5f8aa 100644
|
| --- a/chrome/browser/resources/print_preview/margin_textbox.js
|
| +++ b/chrome/browser/resources/print_preview/margin_textbox.js
|
| @@ -148,9 +148,9 @@ cr.define('print_preview', function() {
|
| }
|
|
|
| this.updateColor();
|
| - cr.dispatchSimpleEvent(document, 'updateSummary');
|
| - cr.dispatchSimpleEvent(document, 'updatePrintButton');
|
| - cr.dispatchSimpleEvent(this, 'MarginsMayHaveChanged');
|
| + cr.dispatchSimpleEvent(document, customEvents.UPDATE_SUMMARY);
|
| + cr.dispatchSimpleEvent(document, customEvents.UPDATE_PRINT_BUTTON);
|
| + cr.dispatchSimpleEvent(this, customEvents.MARGINS_MAY_HAVE_CHANGED);
|
| },
|
|
|
| /**
|
| @@ -176,8 +176,8 @@ cr.define('print_preview', function() {
|
| this.setValue_(this.lastValidValueInPoints);
|
| this.validate();
|
| this.updateColor();
|
| - cr.dispatchSimpleEvent(document, 'updateSummary');
|
| - cr.dispatchSimpleEvent(document, 'updatePrintButton');
|
| + cr.dispatchSimpleEvent(document, customEvents.UPDATE_SUMMARY);
|
| + cr.dispatchSimpleEvent(document, customEvents.UPDATE_PRINT_BUTTON);
|
| }
|
| },
|
|
|
| @@ -199,12 +199,12 @@ cr.define('print_preview', function() {
|
| onTextValueMayHaveChanged: function() {
|
| this.validate();
|
| this.updateColor();
|
| - cr.dispatchSimpleEvent(document, 'updateSummary');
|
| - cr.dispatchSimpleEvent(document, 'updatePrintButton');
|
| + cr.dispatchSimpleEvent(document, customEvents.UPDATE_SUMMARY);
|
| + cr.dispatchSimpleEvent(document, customEvents.UPDATE_PRINT_BUTTON);
|
|
|
| if (!this.isValid)
|
| return;
|
| - cr.dispatchSimpleEvent(this, 'MarginsMayHaveChanged');
|
| + cr.dispatchSimpleEvent(this, customEvents.MARGINS_MAY_HAVE_CHANGED);
|
| }
|
|
|
| };
|
|
|