Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_quick_view.js

Issue 2074953002: Quick View: Initial implementation of "No preview availale" and UI update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698