OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 'settings-history-deletion-dialog' is a dialog that is | 6 * @fileoverview 'settings-history-deletion-dialog' is a dialog that is |
7 * optionally shown inside settings-clear-browsing-data-dialog after deleting | 7 * optionally shown inside settings-clear-browsing-data-dialog after deleting |
8 * browsing history. It informs the user about the existence of other forms | 8 * browsing history. It informs the user about the existence of other forms |
9 * of browsing history in their account. | 9 * of browsing history in their account. |
10 */ | 10 */ |
11 Polymer({ | 11 Polymer({ |
12 is: 'settings-history-deletion-dialog', | 12 is: 'settings-history-deletion-dialog', |
13 | 13 |
14 /** @override */ | 14 /** @override */ |
15 attached: function() { | 15 attached: function() { |
16 this.$.dialog.showModal(); | 16 this.$.dialog.showModal(); |
17 }, | 17 }, |
18 | 18 |
19 /** | 19 /** |
20 * Tap handler for the "OK" buton. | 20 * Tap handler for the "OK" buton. |
21 * @private | 21 * @private |
22 */ | 22 */ |
23 onOkTap_: function() { | 23 onOkTap_: function() { |
24 this.$.dialog.close(); | 24 this.$.dialog.close(); |
25 }, | 25 }, |
26 }); | 26 }); |
27 | |
OLD | NEW |