Chromium Code Reviews| 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 | |
|
michaelpg
2016/10/01 01:41:04
nit: remove newline
fukino
2016/10/03 18:40:41
Done.
| |
| 11 Polymer({ | |
| 12 is: 'settings-drive-cache-dialog', | |
| 13 | |
| 14 behaviors: [ | |
| 15 I18nBehavior, | |
| 16 ], | |
| 17 | |
| 18 properties: {}, | |
|
michaelpg
2016/10/01 01:41:04
remove
fukino
2016/10/03 18:40:41
Done.
| |
| 19 | |
| 20 open: function() { | |
| 21 this.$.dialog.showModal(); | |
| 22 }, | |
| 23 | |
| 24 /** @private */ | |
| 25 onCancelTap_: function() { | |
| 26 this.$.dialog.cancel(); | |
| 27 }, | |
| 28 | |
| 29 /** @private */ | |
| 30 onDeleteTap_: function() { | |
| 31 chrome.send('clearDriveCache'); | |
| 32 this.$.dialog.close(); | |
| 33 }, | |
| 34 }); | |
| OLD | NEW |