Chromium Code Reviews| Index: ui/file_manager/file_manager/foreground/elements/files_quick_view.js |
| diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js |
| index 675c86d7861aca48af1a910c7095a413ad8ce9fe..2ad385c6e8a4356c69adf6fdceeff47183d63601 100644 |
| --- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.js |
| +++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.js |
| @@ -11,6 +11,9 @@ var FilesQuickView = Polymer({ |
| video: String, |
| videoPoster: String, |
| audio: String, |
| + contentThumbnailUrl: String, |
| + |
|
fukino
2016/06/17 02:35:13
unnecessary blank line?
oka
2016/06/17 23:13:54
Done.
|
| + unsupported: Boolean, |
| // metadata-box-active-changed event is fired on attribute change. |
| metadataBoxActive: { |
| @@ -21,28 +24,16 @@ var FilesQuickView = Polymer({ |
| }, |
| listeners: { |
| - 'iron-overlay-closed': 'clear_', |
| - }, |
| - |
| - setImageURL: function(url) { |
| - this.clear_(); |
| - this.image = url; |
| - }, |
| - |
| - setVideoURL: function(url) { |
| - this.clear_(); |
| - this.video = url; |
| - }, |
| - |
| - setAudioURL: function(url) { |
| - this.clear_(); |
| - this.audio = url; |
| + 'iron-overlay-closed': 'clear', |
| }, |
| - clear_: function() { |
| + clear: function() { |
| + this.filePath = ''; |
| this.image = ''; |
| this.video = ''; |
| this.audio = ''; |
| + this.contentThumbnailUrl = ''; |
| + this.unsupported = false; |
| }, |
| // Open the dialog. |