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

Unified Diff: chrome/renderer/resources/plugin_poster.html

Issue 981623003: Plugin Power Saver: Implement srcset syntax for posters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/renderer/resources/plugin_poster.html
diff --git a/chrome/renderer/resources/plugin_poster.html b/chrome/renderer/resources/plugin_poster.html
index 9dc99c4189eb5d5a1787e6bad31a193c947c3f22..bf612616ddbd913288b173f5fdfb50f6b61960ed 100644
--- a/chrome/renderer/resources/plugin_poster.html
+++ b/chrome/renderer/resources/plugin_poster.html
@@ -19,18 +19,19 @@ document.onkeydown = function(e) {
<link rel="stylesheet" href="plugin_placeholders.css"></link>
<style>
#outer {
+ position: relative;
border: none;
cursor: pointer;
- background-position: center;
- background-repeat: no-repeat;
- background-size: contain;
}
#shielding {
background-color: rgba(0, 0, 0, 0.5);
- height: 100%;
position: absolute;
+ top: 0px;
+ left: 0px;
+ height: 100%;
width: 100%;
+ z-index: 2;
}
#plugin_icon {
@@ -41,15 +42,22 @@ document.onkeydown = function(e) {
opacity: 0.95;
}
+#poster {
+ height: 100%;
+ width: 100%;
+ z-index: 1;
+}
+
#inner {
margin-top: -25px;
}
</style>
+<base i18n-values="href:baseurl">
</head>
<body onload="notifyDidFinishLoading();">
- <div i18n-values="title:name;.style.background-image:background" id="outer"
- onclick="plugin.load()">
+ <div i18n-values="title:name" id="outer" onclick="plugin.load()">
+ <img id="poster" i18n-values="srcset:poster">
<div id="shielding">
<div id="inner">
<div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div>

Powered by Google App Engine
This is Rietveld 408576698