| Index: chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js
|
| diff --git a/chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js b/chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js
|
| index 38ffc00b5fe0b09230eff36ee144fa02ef3c99bd..004dea939d4ed612c9d97318e2f5c2ff15856c5f 100644
|
| --- a/chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js
|
| +++ b/chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js
|
| @@ -17,23 +17,16 @@ cr.define('print_preview.ticket_items', function() {
|
| */
|
| function CustomMargins(appState, documentInfo) {
|
| print_preview.ticket_items.TicketItem.call(
|
| - this,
|
| - appState,
|
| - print_preview.AppState.Field.CUSTOM_MARGINS,
|
| - null /*destinationStore*/,
|
| - documentInfo);
|
| + this, appState, print_preview.AppState.Field.CUSTOM_MARGINS,
|
| + null /*destinationStore*/, documentInfo);
|
| };
|
|
|
| /**
|
| * Enumeration of the orientations of margins.
|
| * @enum {string}
|
| */
|
| - CustomMargins.Orientation = {
|
| - TOP: 'top',
|
| - RIGHT: 'right',
|
| - BOTTOM: 'bottom',
|
| - LEFT: 'left'
|
| - };
|
| + CustomMargins.Orientation =
|
| + {TOP: 'top', RIGHT: 'right', BOTTOM: 'bottom', LEFT: 'left'};
|
|
|
| /**
|
| * Mapping of a margin orientation to its opposite.
|
| @@ -57,7 +50,7 @@ cr.define('print_preview.ticket_items', function() {
|
| * @const
|
| * @private
|
| */
|
| - CustomMargins.MINIMUM_MARGINS_DISTANCE_ = 72; // 1 inch.
|
| + CustomMargins.MINIMUM_MARGINS_DISTANCE_ = 72; // 1 inch.
|
|
|
| CustomMargins.prototype = {
|
| __proto__: print_preview.ticket_items.TicketItem.prototype,
|
| @@ -130,13 +123,13 @@ cr.define('print_preview.ticket_items', function() {
|
| /** @override */
|
| getDefaultValueInternal: function() {
|
| return this.getDocumentInfoInternal().margins ||
|
| - new print_preview.Margins(72, 72, 72, 72);
|
| + new print_preview.Margins(72, 72, 72, 72);
|
| },
|
|
|
| /** @override */
|
| getCapabilityNotAvailableValueInternal: function() {
|
| return this.getDocumentInfoInternal().margins ||
|
| - new print_preview.Margins(72, 72, 72, 72);
|
| + new print_preview.Margins(72, 72, 72, 72);
|
| },
|
|
|
| /**
|
| @@ -162,7 +155,5 @@ cr.define('print_preview.ticket_items', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - CustomMargins: CustomMargins
|
| - };
|
| + return {CustomMargins: CustomMargins};
|
| });
|
|
|