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

Unified Diff: chrome/browser/resources/print_preview/settings/more_settings.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/settings/more_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/more_settings.js b/chrome/browser/resources/print_preview/settings/more_settings.js
index ebdc78f8dcf872bc456e007abec1dad42689cd6b..25bb73933a8acea783388b87822cabad6f5fa4c3 100644
--- a/chrome/browser/resources/print_preview/settings/more_settings.js
+++ b/chrome/browser/resources/print_preview/settings/more_settings.js
@@ -58,8 +58,8 @@ cr.define('print_preview', function() {
this.onDestinationChanged_.bind(this));
this.tracker.add(
this.destinationStore_,
- print_preview.DestinationStore.EventType.
- SELECTED_DESTINATION_CAPABILITIES_READY,
+ print_preview.DestinationStore.EventType
+ .SELECTED_DESTINATION_CAPABILITIES_READY,
this.onDestinationCapabilitiesReady_.bind(this));
this.settingsSections_.forEach(function(section) {
this.tracker.add(
@@ -79,9 +79,11 @@ cr.define('print_preview', function() {
onClick_: function() {
this.showAll_ = !this.showAll_;
this.updateState_(false);
- this.metrics_.record(this.isExpanded ?
- print_preview.Metrics.PrintSettingsUiBucket.MORE_SETTINGS_CLICKED :
- print_preview.Metrics.PrintSettingsUiBucket.LESS_SETTINGS_CLICKED);
+ this.metrics_.record(
+ this.isExpanded ? print_preview.Metrics.PrintSettingsUiBucket
+ .MORE_SETTINGS_CLICKED :
+ print_preview.Metrics.PrintSettingsUiBucket
+ .LESS_SETTINGS_CLICKED);
},
/**
@@ -120,21 +122,20 @@ cr.define('print_preview', function() {
return;
this.getChildElement('.more-settings-label').textContent =
- loadTimeData.getString(this.isExpanded ? 'lessOptionsLabel' :
- 'moreOptionsLabel');
+ loadTimeData.getString(
+ this.isExpanded ? 'lessOptionsLabel' : 'moreOptionsLabel');
var iconEl = this.getChildElement('.more-settings-icon');
iconEl.classList.toggle('more-settings-icon-plus', !this.isExpanded);
iconEl.classList.toggle('more-settings-icon-minus', this.isExpanded);
- var availableSections = this.settingsSections_.reduce(
- function(count, section) {
+ var availableSections =
+ this.settingsSections_.reduce(function(count, section) {
return count + (section.isAvailable() ? 1 : 0);
}, 0);
// Magic 6 is chosen as the number of sections when it still feels like
// manageable and not too crowded.
- var hasSectionsToToggle =
- availableSections > 6 &&
+ var hasSectionsToToggle = availableSections > 6 &&
this.settingsSections_.some(function(section) {
return section.hasCollapsibleContent();
});
@@ -152,7 +153,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- MoreSettings: MoreSettings
- };
+ return {MoreSettings: MoreSettings};
});

Powered by Google App Engine
This is Rietveld 408576698