| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * @fileoverview |
| 7 * 'settings-drive-cache-dialog' is the dialog to delete Google Drive temporary |
| 8 * offline files. |
| 9 */ |
| 10 Polymer({ |
| 11 is: 'settings-drive-cache-dialog', |
| 12 |
| 13 behaviors: [ |
| 14 I18nBehavior, |
| 15 ], |
| 16 |
| 17 open: function() { |
| 18 this.$.dialog.showModal(); |
| 19 }, |
| 20 |
| 21 /** @private */ |
| 22 onCancelTap_: function() { |
| 23 this.$.dialog.cancel(); |
| 24 }, |
| 25 |
| 26 /** @private */ |
| 27 onDeleteTap_: function() { |
| 28 chrome.send('clearDriveCache'); |
| 29 this.$.dialog.close(); |
| 30 }, |
| 31 }); |
| OLD | NEW |