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

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..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.

Powered by Google App Engine
This is Rietveld 408576698