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

Unified Diff: chrome/browser/resources/print_preview/settings/page_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/page_settings.js
diff --git a/chrome/browser/resources/print_preview/settings/page_settings.js b/chrome/browser/resources/print_preview/settings/page_settings.js
index e5ddd6a489937a1ffa91f342e1f134877e3e8fec..4002ca6181d1f8e9c486c62dea5b8f64d544932d 100644
--- a/chrome/browser/resources/print_preview/settings/page_settings.js
+++ b/chrome/browser/resources/print_preview/settings/page_settings.js
@@ -105,25 +105,15 @@ cr.define('print_preview', function() {
this.tracker.add(
assert(this.allRadio_), 'click', this.onAllRadioClick_.bind(this));
this.tracker.add(
- assert(this.customRadio_),
- 'click',
+ assert(this.customRadio_), 'click',
this.onCustomRadioClick_.bind(this));
+ this.tracker.add(customInput, 'blur', this.onCustomInputBlur_.bind(this));
this.tracker.add(
- customInput,
- 'blur',
- this.onCustomInputBlur_.bind(this));
+ customInput, 'focus', this.onCustomInputFocus_.bind(this));
this.tracker.add(
- customInput,
- 'focus',
- this.onCustomInputFocus_.bind(this));
+ customInput, 'keydown', this.onCustomInputKeyDown_.bind(this));
this.tracker.add(
- customInput,
- 'keydown',
- this.onCustomInputKeyDown_.bind(this));
- this.tracker.add(
- customInput,
- 'input',
- this.onCustomInputChange_.bind(this));
+ customInput, 'input', this.onCustomInputChange_.bind(this));
this.tracker.add(
this.pageRangeTicketItem_,
print_preview.ticket_items.TicketItem.EventType.CHANGE,
@@ -164,8 +154,7 @@ cr.define('print_preview', function() {
'pageRangeLimitInstructionWithValue',
this.pageRangeTicketItem_.getDocumentNumPages());
} else {
- message = loadTimeData.getString(
- 'pageRangeLimitInstruction');
+ message = loadTimeData.getString('pageRangeLimitInstruction');
}
} else {
message = loadTimeData.getStringF(
@@ -283,7 +272,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- PageSettings: PageSettings
- };
+ return {PageSettings: PageSettings};
});

Powered by Google App Engine
This is Rietveld 408576698