| 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);
|
| }
|
| },
|
|
|