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

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

Issue 2269463002: Render low-resolution image first on Quick View. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made it work. Created 4 years, 4 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 3fc8e6f922c1c42bfcb20de8f5b0ca6e65d67837..05dc7c189c8d958a7d8d15e322827390a476a862 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
@@ -12,8 +12,13 @@ var FilesQuickView = Polymer({
// URLs should be accessible from webview since contets are rendered inside
// it. Hint: use URL.createObjectURL.
contentUrl: String,
+ // Image shown before full resolution image is rendered, or
+ // Audio thumbnail.
+ contentThumbnailUrl: String,
+ imageHeight: Number,
+ imageWidth: Number,
+
videoPoster: String,
- audioArtwork: String,
autoplay: Boolean,
// metadata-box-active-changed event is fired on attribute change.
@@ -38,8 +43,8 @@ var FilesQuickView = Polymer({
this.type = '';
this.filePath = '';
this.contentUrl = '';
+ this.contentThumbnailUrl = '';
this.videoPoster = '';
- this.audioArtwork = '';
this.autoplay = false;
},

Powered by Google App Engine
This is Rietveld 408576698