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

Unified Diff: chrome/browser/resources/print_preview/data/ticket_items/header_footer.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/header_footer.js
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js b/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
index 4f0840693f62d6b158a34c963dcd69f2ce165b0b..d6255ed6274a6e21da5dd0235012efdc71c82698 100644
--- a/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
+++ b/chrome/browser/resources/print_preview/data/ticket_items/header_footer.js
@@ -21,11 +21,8 @@ cr.define('print_preview.ticket_items', function() {
*/
function HeaderFooter(appState, documentInfo, marginsType, customMargins) {
print_preview.ticket_items.TicketItem.call(
- this,
- appState,
- print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED,
- null /*destinationStore*/,
- documentInfo);
+ this, appState, print_preview.AppState.Field.IS_HEADER_FOOTER_ENABLED,
+ null /*destinationStore*/, documentInfo);
/**
* Ticket item that stores which predefined margins to print with.
@@ -56,10 +53,12 @@ cr.define('print_preview.ticket_items', function() {
isCapabilityAvailable: function() {
if (!this.getDocumentInfoInternal().isModifiable) {
return false;
- } else if (this.marginsType_.getValue() ==
+ } else if (
+ this.marginsType_.getValue() ==
print_preview.ticket_items.MarginsType.Value.NO_MARGINS) {
return false;
- } else if (this.marginsType_.getValue() ==
+ } else if (
+ this.marginsType_.getValue() ==
print_preview.ticket_items.MarginsType.Value.MINIMUM) {
return true;
}
@@ -74,9 +73,8 @@ cr.define('print_preview.ticket_items', function() {
margins = this.getDocumentInfoInternal().margins;
}
var orientEnum = print_preview.ticket_items.CustomMargins.Orientation;
- return margins == null ||
- margins.get(orientEnum.TOP) > 0 ||
- margins.get(orientEnum.BOTTOM) > 0;
+ return margins == null || margins.get(orientEnum.TOP) > 0 ||
+ margins.get(orientEnum.BOTTOM) > 0;
},
/** @override */
@@ -106,7 +104,5 @@ cr.define('print_preview.ticket_items', function() {
};
// Export
- return {
- HeaderFooter: HeaderFooter
- };
+ return {HeaderFooter: HeaderFooter};
});

Powered by Google App Engine
This is Rietveld 408576698