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

Unified Diff: chrome/browser/resources/print_preview/settings/advanced_settings/advanced_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/advanced_settings/advanced_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings.js b/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings.js
index afc4125bb05b6babf3963106a9ddb47fbf143d6a..42edd3a98d14013437b9c5a303ef00c6ff93e6e0 100644
--- a/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings.js
+++ b/chrome/browser/resources/print_preview/settings/advanced_settings/advanced_settings.js
@@ -59,8 +59,8 @@ cr.define('print_preview', function() {
assert(!this.destination_);
this.destination_ = destination;
this.getChildElement('.advanced-settings-title').textContent =
- loadTimeData.getStringF('advancedSettingsDialogTitle',
- this.destination_.displayName);
+ loadTimeData.getStringF(
+ 'advancedSettingsDialogTitle', this.destination_.displayName);
this.setIsVisible(true);
this.renderSettings_();
},
@@ -70,18 +70,15 @@ cr.define('print_preview', function() {
print_preview.Overlay.prototype.enterDocument.call(this);
this.tracker.add(
- this.getChildElement('.button-strip .cancel-button'),
- 'click',
+ this.getChildElement('.button-strip .cancel-button'), 'click',
this.cancel.bind(this));
this.tracker.add(
- this.getChildElement('.button-strip .done-button'),
- 'click',
+ this.getChildElement('.button-strip .done-button'), 'click',
this.onApplySettings_.bind(this));
this.tracker.add(
- assert(this.searchBox_),
- print_preview.SearchBox.EventType.SEARCH,
+ assert(this.searchBox_), print_preview.SearchBox.EventType.SEARCH,
this.onSearch_.bind(this));
},
@@ -94,8 +91,8 @@ cr.define('print_preview', function() {
onSetVisibleInternal: function(isVisible) {
if (isVisible) {
this.searchBox_.focus();
- this.metrics_.record(print_preview.Metrics.PrintSettingsUiBucket.
- ADVANCED_SETTINGS_DIALOG_SHOWN);
+ this.metrics_.record(print_preview.Metrics.PrintSettingsUiBucket
+ .ADVANCED_SETTINGS_DIALOG_SHOWN);
} else {
this.resetSearch_();
this.destination_ = null;
@@ -104,8 +101,8 @@ cr.define('print_preview', function() {
/** @override */
onCancelInternal: function() {
- this.metrics_.record(print_preview.Metrics.PrintSettingsUiBucket.
- ADVANCED_SETTINGS_DIALOG_CANCELED);
+ this.metrics_.record(print_preview.Metrics.PrintSettingsUiBucket
+ .ADVANCED_SETTINGS_DIALOG_CANCELED);
},
/** @override */
@@ -145,8 +142,7 @@ cr.define('print_preview', function() {
lastVisibleItemWithBubble = item;
});
setIsVisible(
- this.getChildElement('.no-settings-match-hint'),
- !atLeastOneMatch);
+ this.getChildElement('.no-settings-match-hint'), !atLeastOneMatch);
setIsVisible(
this.getChildElement('.' + AdvancedSettings.Classes_.EXTRA_PADDING),
!!lastVisibleItemWithBubble);
@@ -236,7 +232,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- AdvancedSettings: AdvancedSettings
- };
+ return {AdvancedSettings: AdvancedSettings};
});

Powered by Google App Engine
This is Rietveld 408576698