| 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 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 }, | 38 }, |
| 39 }, | 39 }, |
| 40 | 40 |
| 41 /** | 41 /** |
| 42 * @type {string} Selector to get the sections. | 42 * @type {string} Selector to get the sections. |
| 43 * TODO(michaelpg): replace duplicate docs with @override once b/24294625 | 43 * TODO(michaelpg): replace duplicate docs with @override once b/24294625 |
| 44 * is fixed. | 44 * is fixed. |
| 45 */ | 45 */ |
| 46 sectionSelector: 'settings-section', | 46 sectionSelector: 'settings-section', |
| 47 | 47 |
| 48 <if expr="not chromeos"> | |
| 49 listeners: { | |
| 50 'dom-change': 'onDomChange_', | |
| 51 }, | |
| 52 </if> | |
| 53 | |
| 54 /** @override */ | 48 /** @override */ |
| 55 attached: function() { | 49 attached: function() { |
| 56 /** @override */ | 50 /** @override */ |
| 57 this.scroller = this.parentElement; | 51 this.scroller = this.parentElement; |
| 58 }, | 52 }, |
| 59 | |
| 60 <if expr="not chromeos"> | |
| 61 /** @private */ | |
| 62 onDomChange_: function() { | |
| 63 var systemPage = /** @type {?SettingsSystemPageElement} */( | |
| 64 this.$$('settings-system-page')); | |
| 65 if (systemPage && !systemPage.delegate) | |
| 66 systemPage.delegate = new settings.SystemPageDelegateImpl; | |
| 67 }, | |
| 68 </if> | |
| 69 }); | 53 }); |
| OLD | NEW |