| 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..30c11e348b1a23978bc6a85391e5b2ef25eb809a 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,8 @@ var FilesQuickView = Polymer({
|
| video: String,
|
| videoPoster: String,
|
| audio: String,
|
| + contentThumbnailUrl: String,
|
| + unsupported: Boolean,
|
|
|
| // metadata-box-active-changed event is fired on attribute change.
|
| metadataBoxActive: {
|
| @@ -21,28 +23,16 @@ var FilesQuickView = Polymer({
|
| },
|
|
|
| listeners: {
|
| - 'iron-overlay-closed': 'clear_',
|
| + '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;
|
| - },
|
| -
|
| - clear_: function() {
|
| + clear: function() {
|
| + this.filePath = '';
|
| this.image = '';
|
| this.video = '';
|
| this.audio = '';
|
| + this.contentThumbnailUrl = '';
|
| + this.unsupported = false;
|
| },
|
|
|
| // Open the dialog.
|
|
|