| 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 * | 8 * |
| 9 * Example: | 9 * Example: |
| 10 * | 10 * |
| 11 * <iron-animated-pages> | 11 * <iron-animated-pages> |
| 12 * <settings-basic-page prefs="{{prefs}}"></settings-basic-page> | 12 * <settings-basic-page prefs="{{prefs}}"></settings-basic-page> |
| 13 * ... other pages ... | 13 * ... other pages ... |
| 14 * </iron-animated-pages> | 14 * </iron-animated-pages> |
| 15 */ | 15 */ |
| 16 Polymer({ | 16 Polymer({ |
| 17 is: 'settings-basic-page', | 17 is: 'settings-basic-page', |
| 18 | 18 |
| 19 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior], |
| 20 |
| 19 properties: { | 21 properties: { |
| 20 /** | 22 /** |
| 21 * Preferences state. | 23 * Preferences state. |
| 22 */ | 24 */ |
| 23 prefs: { | 25 prefs: { |
| 24 type: Object, | 26 type: Object, |
| 25 notify: true, | 27 notify: true, |
| 26 }, | 28 }, |
| 27 | 29 |
| 28 /** | 30 /** |
| 29 * The current active route. | 31 * The current active route. |
| 32 * @type {SettingsRoute} |
| 30 */ | 33 */ |
| 31 currentRoute: { | 34 currentRoute: { |
| 32 type: Object, | 35 type: Object, |
| 33 notify: true, | 36 notify: true, |
| 34 }, | 37 }, |
| 35 | 38 |
| 36 /** | 39 /** |
| 37 * True if the basic page should currently display the reset profile banner. | 40 * True if the basic page should currently display the reset profile banner. |
| 38 * @private {boolean} | 41 * @private {boolean} |
| 39 */ | 42 */ |
| (...skipping 12 matching lines...) Expand all Loading... |
| 52 * is fixed. | 55 * is fixed. |
| 53 */ | 56 */ |
| 54 sectionSelector: 'settings-section', | 57 sectionSelector: 'settings-section', |
| 55 | 58 |
| 56 /** @override */ | 59 /** @override */ |
| 57 attached: function() { | 60 attached: function() { |
| 58 /** @override */ | 61 /** @override */ |
| 59 this.scroller = this.parentElement; | 62 this.scroller = this.parentElement; |
| 60 }, | 63 }, |
| 61 | 64 |
| 62 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior], | |
| 63 | |
| 64 onResetDone_: function() { | 65 onResetDone_: function() { |
| 65 this.showResetProfileBanner_ = false; | 66 this.showResetProfileBanner_ = false; |
| 66 }, | 67 }, |
| 67 }); | 68 }); |
| OLD | NEW |