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

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

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
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/elements/files_quick_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/elements/files_quick_view.html
diff --git a/ui/file_manager/file_manager/foreground/elements/files_quick_view.html b/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
index 7fa40bee710c430c33e5327f7a92f673aa86c57b..8dbfd145bf631f86aabfe172111bc4fe3c4a96d5 100644
--- a/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
+++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
@@ -31,9 +31,11 @@
<div id="mainPanel">
<div id="contentPanel" metadata-box-active$="[[metadataBoxActive]]" on-tap="onContentPanelTap_">
<div id="innerContentPanel" tabindex="0">
+ <!-- Image -->
<template is="dom-if" if="[[isImage_(type)]]">
<div hidden="[[!contentUrl]]">
- <files-safe-media type="image" class="content no-close-on-click" src="[[contentUrl]]"></files-safe-media>
+ <!--files-safe-media type="image" class="content no-close-on-click" src="[[contentUrl]]"></files-safe-media-->
+ <files-safe-media type="image" class="content no-close-on-click" src="[[contentUrl]]" background="[[contentThumbnailUrl]]" image-height="[[imageHeight]]" image-width="[[imageWidth]]"></files-safe-media>
</div>
<template is="dom-if" if="[[!contentUrl]]">
<div generic-thumbnail="image"></div>
@@ -55,7 +57,7 @@
</template>
<!-- Audio -->
<template is="dom-if" if="[[isAudio_(type)]]">
- <files-safe-media type="image" id="audio-artwork" class="no-close-on-click" src="[[audioArtwork]]" hidden="[[!audioArtwork]]"></files-safe-media>
+ <files-safe-media type="image" id="audio-artwork" class="no-close-on-click" src="[[contentThumbnailUrl]]" hidden="[[!contentThumbnailUrl]]"></files-safe-media>
</template>
<div>
<files-safe-media type="audio" class="no-close-on-click" autoplay="[[autoplay]]" controls src="[[audioUrl_(contentUrl, type)]]" hidden="[[!isAudio_(type)]]"></files-safe-media>
« no previous file with comments | « no previous file | ui/file_manager/file_manager/foreground/elements/files_quick_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698