Chromium Code Reviews| Index: chrome/browser/resources/settings/device_page/drive_cache_dialog.js |
| diff --git a/chrome/browser/resources/settings/device_page/drive_cache_dialog.js b/chrome/browser/resources/settings/device_page/drive_cache_dialog.js |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..858c7749b3d827217e1ba743118f6920c8ed70fd |
| --- /dev/null |
| +++ b/chrome/browser/resources/settings/device_page/drive_cache_dialog.js |
| @@ -0,0 +1,34 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +/** |
| + * @fileoverview |
| + * 'settings-drive-cache-dialog' is the dialog to delete Google Drive temporary |
| + * offline files. |
| + */ |
| + |
|
michaelpg
2016/10/01 01:41:04
nit: remove newline
fukino
2016/10/03 18:40:41
Done.
|
| +Polymer({ |
| + is: 'settings-drive-cache-dialog', |
| + |
| + behaviors: [ |
| + I18nBehavior, |
| + ], |
| + |
| + properties: {}, |
|
michaelpg
2016/10/01 01:41:04
remove
fukino
2016/10/03 18:40:41
Done.
|
| + |
| + open: function() { |
| + this.$.dialog.showModal(); |
| + }, |
| + |
| + /** @private */ |
| + onCancelTap_: function() { |
| + this.$.dialog.cancel(); |
| + }, |
| + |
| + /** @private */ |
| + onDeleteTap_: function() { |
| + chrome.send('clearDriveCache'); |
| + this.$.dialog.close(); |
| + }, |
| +}); |