| 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-advanced-page' is the settings page containing the advanced | 7 * 'settings-advanced-page' is the settings page containing the advanced |
| 8 * settings. | 8 * settings. |
| 9 * | |
| 10 * Example: | |
| 11 * | |
| 12 * <iron-animated-pages> | |
| 13 * <settings-advanced-page prefs="{{prefs}}"> | |
| 14 * </settings-advanced-page> | |
| 15 * ... other pages ... | |
| 16 * </iron-animated-pages> | |
| 17 */ | 9 */ |
| 18 Polymer({ | 10 Polymer({ |
| 19 is: 'settings-advanced-page', | 11 is: 'settings-advanced-page', |
| 20 | 12 |
| 21 behaviors: [I18nBehavior, SettingsPageVisibility, RoutableBehavior], | 13 behaviors: [SettingsPageVisibility, RoutableBehavior], |
| 22 | 14 |
| 23 properties: { | 15 properties: { |
| 24 /** | 16 /** |
| 25 * Preferences state. | 17 * Preferences state. |
| 26 */ | 18 */ |
| 27 prefs: { | 19 prefs: { |
| 28 type: Object, | 20 type: Object, |
| 29 notify: true, | 21 notify: true, |
| 30 }, | 22 }, |
| 31 | 23 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 45 * is fixed. | 37 * is fixed. |
| 46 */ | 38 */ |
| 47 sectionSelector: 'settings-section', | 39 sectionSelector: 'settings-section', |
| 48 | 40 |
| 49 /** @override */ | 41 /** @override */ |
| 50 attached: function() { | 42 attached: function() { |
| 51 /** @override */ | 43 /** @override */ |
| 52 this.scroller = this.parentElement; | 44 this.scroller = this.parentElement; |
| 53 }, | 45 }, |
| 54 }); | 46 }); |
| OLD | NEW |