OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview |
| 7 * 'settings-reset-page' is the settings page containing reset |
| 8 * settings. |
| 9 * |
| 10 * Example: |
| 11 * |
| 12 * <iron-animated-pages> |
| 13 * <settings-reset-page prefs="{{prefs}}"> |
| 14 * </settings-reset-page> |
| 15 * ... other pages ... |
| 16 * </iron-animated-pages> |
| 17 * |
| 18 * @group Chrome Settings Elements |
| 19 * @element settings-reset-page |
| 20 */ |
| 21 Polymer({ |
| 22 is: 'settings-reset-page', |
| 23 |
| 24 /** @private */ |
| 25 onShowDialog_: function() { |
| 26 this.$.resetDialog.open(); |
| 27 }, |
| 28 |
| 29 /** @private */ |
| 30 onCancelTap_: function() { |
| 31 this.$.resetDialog.close(); |
| 32 }, |
| 33 |
| 34 /** @private */ |
| 35 onResetTap_: function() { |
| 36 // TODO(dpapad): Set up C++ handlers and figure out when it is OK to close |
| 37 // the dialog. |
| 38 this.$.resetDialog.close(); |
| 39 }, |
| 40 |
| 41 /** @private */ |
| 42 onLearnMoreTap_: function() { |
| 43 window.open(loadTimeData.getString('resetPageLearnMoreUrl')); |
| 44 } |
| 45 }); |
OLD | NEW |