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

Unified Diff: chrome/browser/resources/settings/controls/settings_input.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/settings/controls/settings_input.js
diff --git a/chrome/browser/resources/settings/controls/settings_input.js b/chrome/browser/resources/settings/controls/settings_input.js
index 012a8bcaeccb646c238874c19da2cf913ad8e84c..e9a0edcc3c4ae291e5484f8ed6103186ee816dca 100644
--- a/chrome/browser/resources/settings/controls/settings_input.js
+++ b/chrome/browser/resources/settings/controls/settings_input.js
@@ -18,9 +18,7 @@ Polymer({
* @type {!chrome.settingsPrivate.PrefObject|undefined}
* @override
*/
- pref: {
- observer: 'prefChanged_'
- },
+ pref: {observer: 'prefChanged_'},
/* The current value of the input, reflected to/from |pref|. */
value: {
@@ -30,24 +28,20 @@ Polymer({
},
/* Set to true to disable editing the input. */
- disabled: {
- type: Boolean,
- value: false,
- reflectToAttribute: true
- },
+ disabled: {type: Boolean, value: false, reflectToAttribute: true},
canTab: Boolean,
/* Properties for paper-input. This is not strictly necessary.
* Though it does define the types for the closure compiler. */
- errorMessage: { type: String },
- label: { type: String },
- noLabelFloat: { type: Boolean, value: false },
- pattern: { type: String },
- readonly: { type: Boolean, value: false },
- required: { type: Boolean, value: false },
- stopKeyboardEventPropagation: { type: Boolean, value: false },
- type: { type: String },
+ errorMessage: {type: String},
+ label: {type: String},
+ noLabelFloat: {type: Boolean, value: false},
+ pattern: {type: String},
+ readonly: {type: Boolean, value: false},
+ required: {type: Boolean, value: false},
+ stopKeyboardEventPropagation: {type: Boolean, value: false},
+ type: {type: String},
},
/**
@@ -73,9 +67,10 @@ Polymer({
if (this.pref.type == chrome.settingsPrivate.PrefType.NUMBER) {
this.value = this.pref.value.toString();
} else {
- assert(this.pref.type == chrome.settingsPrivate.PrefType.STRING ||
- this.pref.type == chrome.settingsPrivate.PrefType.URL);
- this.value = /** @type {string} */(this.pref.value);
+ assert(
+ this.pref.type == chrome.settingsPrivate.PrefType.STRING ||
+ this.pref.type == chrome.settingsPrivate.PrefType.URL);
+ this.value = /** @type {string} */ (this.pref.value);
}
},
@@ -110,8 +105,9 @@ Polymer({
}
this.set('pref.value', n);
} else {
- assert(this.pref.type == chrome.settingsPrivate.PrefType.STRING ||
- this.pref.type == chrome.settingsPrivate.PrefType.URL);
+ assert(
+ this.pref.type == chrome.settingsPrivate.PrefType.STRING ||
+ this.pref.type == chrome.settingsPrivate.PrefType.URL);
this.set('pref.value', this.value);
}
},

Powered by Google App Engine
This is Rietveld 408576698