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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 dfa74230c0f1d7a6047b62c32bf5eddacd770a81..97c0ed8399b5a390ad7fd7f4e004965dc73fc89f 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
@@ -33,11 +33,8 @@ cr.define('print_preview.ticket_items', function() {
*/
function CustomMargins(appState, documentInfo) {
print_preview.ticket_items.TicketItem.call(
- this,
- appState,
- print_preview.AppStateField.CUSTOM_MARGINS,
- null /*destinationStore*/,
- documentInfo);
+ this, appState, print_preview.AppStateField.CUSTOM_MARGINS,
+ null /*destinationStore*/, documentInfo);
}
/**
@@ -62,7 +59,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,
@@ -135,13 +132,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);
},
/**
@@ -158,14 +155,12 @@ cr.define('print_preview.ticket_items', function() {
this.getDocumentInfoInternal().pageSize.height :
this.getDocumentInfoInternal().pageSize.width;
- var totalMargin = dimensionLength -
- CustomMargins.MINIMUM_MARGINS_DISTANCE_;
+ var totalMargin =
+ dimensionLength - CustomMargins.MINIMUM_MARGINS_DISTANCE_;
return Math.round(totalMargin > 0 ? totalMargin - oppositeMargin : 0);
}
};
// Export
- return {
- CustomMargins: CustomMargins
- };
+ return {CustomMargins: CustomMargins};
});

Powered by Google App Engine
This is Rietveld 408576698