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

Unified Diff: chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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/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};
});

Powered by Google App Engine
This is Rietveld 408576698