| 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 010e9c7fd294d4f96fc217b64770704f6e238e96..8e8948d9f82ef13ebda798c8abd8561ebeafcf8a 100644
|
| --- a/chrome/browser/resources/print_preview/margin_textbox.js
|
| +++ b/chrome/browser/resources/print_preview/margin_textbox.js
|
| @@ -135,7 +135,7 @@ cr.define('print_preview', function() {
|
| this.onkeypress = this.onKeyPressed_.bind(this);
|
| this.onkeyup = this.onKeyUp_.bind(this);
|
| this.onfocus = function() {
|
| - cr.dispatchSimpleEvent(document, 'marginTextboxFocused');
|
| + cr.dispatchSimpleEvent(document, customEvents.MARGIN_TEXTBOX_FOCUSED);
|
| };
|
| },
|
|
|
| @@ -152,9 +152,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);
|
| },
|
|
|
| /**
|
| @@ -180,8 +180,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);
|
| }
|
| },
|
|
|
| @@ -203,12 +203,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);
|
| }
|
|
|
| };
|
|
|