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

Unified Diff: chrome/browser/resources/print_preview/settings/advanced_settings/advanced_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/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 3185ca2c3b913b1d1e44206f93ba43431a871a65..b73c1fad9cb50d90a77a644fb806253666363cea 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(
- this.searchBox_,
- print_preview.SearchBox.EventType.SEARCH,
+ 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 */
@@ -234,7 +231,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- AdvancedSettings: AdvancedSettings
- };
+ return {AdvancedSettings: AdvancedSettings};
});

Powered by Google App Engine
This is Rietveld 408576698