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

Unified Diff: third_party/WebKit/LayoutTests/virtual/android/media/mediadocument/resources/standalone-audio.html

Issue 1780043002: Add download button to MediaDocument on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: using flexbox Created 4 years, 9 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: third_party/WebKit/LayoutTests/virtual/android/media/mediadocument/resources/standalone-audio.html
diff --git a/third_party/WebKit/LayoutTests/virtual/android/media/mediadocument/resources/standalone-audio.html b/third_party/WebKit/LayoutTests/virtual/android/media/mediadocument/resources/standalone-audio.html
new file mode 100644
index 0000000000000000000000000000000000000000..e236e11158875e7e08aeddd4dec31a9a21b1b9ab
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/android/media/mediadocument/resources/standalone-audio.html
@@ -0,0 +1,51 @@
+<head>
esprehn 2016/03/29 05:10:31 missing <!DOCTYPE html>
qinmin 2016/03/29 19:23:37 Done.
+<meta name="viewport" content="width=device-width">
+<style>
+body {
+ background-color: black;
+ margin: 0;
+}
+.button1 {
+ display: inline-block;
+ margin-top: 32px;
+ padding: 0 16px 0 16px;
+ height: 36px;
+ background: #4285F4;
+ font-family: Roboto;
+ font-size: 14px;
+ border-radius: 5px;
+ color: white;
+ font-weight: bold;
+ text-decoration:none;
+ line-height: 36px;
+}
+
+.div1 {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ min-height: min-content;
+ height: 100%;
+}
+
+.div2 {
+ text-align: center;
+ position: absolute;
+ left: 0;
+ right: 0;
+}
+
+.video {
+ height: 1px;
+ width: 300px;
+ object-fit: contain;
+}
+</style>
+</head>
+<body>
+<div class="div1">
+<video controls autoplay class="video"><source src="../../../../../media/content/silence.wav"></video>
+<div class="div2"><a href="../../../../../media/content/silence.wav" download class="button1">DOWNLOAD</a></div>
+</div>
+</body>

Powered by Google App Engine
This is Rietveld 408576698