| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // TODO(engedy): AutomaticSettingsResetBanner is the sole class to derive from |
| 6 // SettingsBannerBase. Refactor this into automatic_settings_reset_banner.js. |
| 7 |
| 5 cr.define('options', function() { | 8 cr.define('options', function() { |
| 6 | 9 |
| 7 /** | 10 /** |
| 8 * Base class for banners that appear at the top of the settings page. | 11 * Base class for banners that appear at the top of the settings page. |
| 9 */ | 12 */ |
| 10 function SettingsBannerBase() {} | 13 function SettingsBannerBase() {} |
| 11 | 14 |
| 12 cr.addSingletonGetter(SettingsBannerBase); | 15 cr.addSingletonGetter(SettingsBannerBase); |
| 13 | 16 |
| 14 SettingsBannerBase.prototype = { | 17 SettingsBannerBase.prototype = { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 this.setVisibilibyDomElement_.hidden = !show; | 80 this.setVisibilibyDomElement_.hidden = !show; |
| 78 }, | 81 }, |
| 79 | 82 |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 // Export | 85 // Export |
| 83 return { | 86 return { |
| 84 SettingsBannerBase: SettingsBannerBase | 87 SettingsBannerBase: SettingsBannerBase |
| 85 }; | 88 }; |
| 86 }); | 89 }); |
| OLD | NEW |