| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-basic-page' is the settings page containing the basic settings. | 7 * 'settings-basic-page' is the settings page containing the basic settings. |
| 8 * | |
| 9 * Example: | |
| 10 * | |
| 11 * <iron-animated-pages> | |
| 12 * <settings-basic-page prefs="{{prefs}}"></settings-basic-page> | |
| 13 * ... other pages ... | |
| 14 * </iron-animated-pages> | |
| 15 */ | 8 */ |
| 16 Polymer({ | 9 Polymer({ |
| 17 is: 'settings-basic-page', | 10 is: 'settings-basic-page', |
| 18 | 11 |
| 19 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior], | 12 behaviors: [SettingsPageVisibility, RoutableBehavior], |
| 20 | 13 |
| 21 properties: { | 14 properties: { |
| 22 /** | 15 /** |
| 23 * Preferences state. | 16 * Preferences state. |
| 24 */ | 17 */ |
| 25 prefs: { | 18 prefs: { |
| 26 type: Object, | 19 type: Object, |
| 27 notify: true, | 20 notify: true, |
| 28 }, | 21 }, |
| 29 | 22 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 59 /** @override */ | 52 /** @override */ |
| 60 attached: function() { | 53 attached: function() { |
| 61 /** @override */ | 54 /** @override */ |
| 62 this.scroller = this.parentElement; | 55 this.scroller = this.parentElement; |
| 63 }, | 56 }, |
| 64 | 57 |
| 65 onResetDone_: function() { | 58 onResetDone_: function() { |
| 66 this.showResetProfileBanner_ = false; | 59 this.showResetProfileBanner_ = false; |
| 67 }, | 60 }, |
| 68 }); | 61 }); |
| OLD | NEW |