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

Unified Diff: chrome/browser/resources/print_preview/settings/other_options_settings.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/settings/other_options_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/other_options_settings.js b/chrome/browser/resources/print_preview/settings/other_options_settings.js
index 522869aef03542da3b4af00a625d85dc6afe5a98..157ce9b07d502432bd787a231ea9167e95668d78 100644
--- a/chrome/browser/resources/print_preview/settings/other_options_settings.js
+++ b/chrome/browser/resources/print_preview/settings/other_options_settings.js
@@ -102,7 +102,7 @@ cr.define('print_preview', function() {
*/
isVisible: function(collapseContent) {
return this.ticketItem_.isCapabilityAvailable() &&
- (!this.collapsible_ || !collapseContent);
+ (!this.collapsible_ || !collapseContent);
},
/**
@@ -148,20 +148,19 @@ cr.define('print_preview', function() {
* Selection only must always be the last element in the array.
*/
this.elements_ = [
- new CheckboxTicketItemElement(headerFooter, true,
- 'header-footer-container'),
- new CheckboxTicketItemElement(fitToPage, false,
- 'fit-to-page-container'),
+ new CheckboxTicketItemElement(
+ headerFooter, true, 'header-footer-container'),
+ new CheckboxTicketItemElement(fitToPage, false, 'fit-to-page-container'),
new CheckboxTicketItemElement(duplex, false, 'duplex-container'),
- new CheckboxTicketItemElement(cssBackground, true,
- 'css-background-container'),
- new CheckboxTicketItemElement(selectionOnly, true,
- 'selection-only-container')
+ new CheckboxTicketItemElement(
+ cssBackground, true, 'css-background-container'),
+ new CheckboxTicketItemElement(
+ selectionOnly, true, 'selection-only-container')
];
if (this.rasterizeEnabled_) {
- this.elements_.splice(4, 0,
- new CheckboxTicketItemElement(rasterize, true,
- 'rasterize-container'));
+ this.elements_.splice(
+ 4, 0, new CheckboxTicketItemElement(
+ rasterize, true, 'rasterize-container'));
}
};
@@ -197,9 +196,7 @@ cr.define('print_preview', function() {
print_preview.SettingsSection.prototype.enterDocument.call(this);
this.elements_.forEach(function(element) {
this.tracker.add(
- element.checkbox,
- 'click',
- element.onCheckboxClick.bind(element));
+ element.checkbox, 'click', element.onCheckboxClick.bind(element));
this.tracker.add(
element.ticketItem,
print_preview.ticket_items.TicketItem.EventType.CHANGE,
@@ -240,7 +237,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- OtherOptionsSettings: OtherOptionsSettings
- };
+ return {OtherOptionsSettings: OtherOptionsSettings};
});

Powered by Google App Engine
This is Rietveld 408576698