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

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

Issue 1015023002: Plugin Power Saver: Throttle 'large' plugins that appear small. (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
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | content/public/renderer/plugin_instance_throttler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/plugin_poster.html
diff --git a/chrome/renderer/resources/plugin_poster.html b/chrome/renderer/resources/plugin_poster.html
index bf612616ddbd913288b173f5fdfb50f6b61960ed..0a3742a6f92cbc460058ab157445b6d0e95a5a81 100644
--- a/chrome/renderer/resources/plugin_poster.html
+++ b/chrome/renderer/resources/plugin_poster.html
@@ -48,6 +48,12 @@ document.onkeydown = function(e) {
z-index: 1;
}
+#inner_container {
+ height: 100%;
+ width: 100%;
+ position: relative;
+}
+
#inner {
margin-top: -25px;
}
@@ -59,8 +65,11 @@ document.onkeydown = function(e) {
<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>
+ <div id="inner_container"
+ i18n-values=".style.width:visibleWidth;.style.height:visibleHeight">
+ <div id="inner">
+ <img id="plugin_icon" src="plugin_power_saver_play.png" />
+ </div>
</div>
</div>
</div>
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | content/public/renderer/plugin_instance_throttler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698