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 properties: {}, | |
Dan Beam
2015/10/29 00:46:10
not needed if empty
dpapad
2015/10/29 01:33:10
Done.
| |
25 | |
26 /** @private */ | |
27 onShowDialog_: function() { | |
28 this.$.resetDialog.open(); | |
29 }, | |
30 | |
31 /** @private */ | |
32 onHideDialog_: function() { | |
33 this.$.resetDialog.close(); | |
34 }, | |
35 | |
36 /** @private */ | |
37 onReset_: function() { | |
38 // TODO(dpapad): Set up C++ handlers and figure out when it is OK to close | |
39 // the dialog. | |
40 this.$.resetDialog.close(); | |
41 } | |
42 }); | |
OLD | NEW |