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

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

Issue 2043333002: Quick View: Space key opens quick view for image, video and audio in Download. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve comment 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.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
new file mode 100644
index 0000000000000000000000000000000000000000..b1b24e614a7cbf69511b7656e0a42b5fee904907
--- /dev/null
+++ b/ui/file_manager/file_manager/foreground/elements/files_quick_view.html
@@ -0,0 +1,53 @@
+<!-- Copyright 2016 The Chromium Authors. All rights reserved.
+ -- Use of this source code is governed by a BSD-style license that can be
+ -- found in the LICENSE file.
+-->
+
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-dialog/paper-dialog.html">
+
+<dom-module id="files-quick-view">
+ <style>
+ :host {
+ display: block;
+ }
+ paper-dialog {
+ height: 100%;
+ width: 100%;
+ background: black;
+ margin: 10px;
+ }
+ img, video, audio {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ margin: auto;
+ max-width: 100%;
+ max-height: 100%;
+ }
+ </style>
+ <template>
+ <paper-dialog id="dialog">
+ <template is="dom-if" if="[[image]]">
+ <div>
+ <img src="[[image]]"/>
+ </div>
+ </template>
+ <template is="dom-if" if="[[video]]">
+ <div>
+ <video controls autoplay src="[[video]]" poster="[[videoPoster]]"/>
+ </div>
+ </template>
+ <template is="dom-if" if="[[audio]]">
+ <div>
+ <audio autoplay controls src="[[audio]]"/>
+ </div>
+ </template>
+ <!-- TODO(oka): Add open and info buttons. -->
+ </paper-dialog>
+ </template>
+</dom-module>
+
+<script src="files_quick_view.js"></script>

Powered by Google App Engine
This is Rietveld 408576698