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: chrome/renderer/resources/plugins/plugin_poster.html

Issue 1234103002: Plugin Power Saver: Center 'Play' icon for all partially obscured plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | components/plugins/renderer/loadable_plugin_placeholder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/plugins/plugin_poster.html
diff --git a/chrome/renderer/resources/plugins/plugin_poster.html b/chrome/renderer/resources/plugins/plugin_poster.html
index 08eba0099d930e17a61a3afefe19c6919fda4d29..d5945d1314afae57bb55915fff3f27d406278cbe 100644
--- a/chrome/renderer/resources/plugins/plugin_poster.html
+++ b/chrome/renderer/resources/plugins/plugin_poster.html
@@ -82,6 +82,12 @@
document.getElementById('outer').onclick = function() {
plugin.load();
};
+
+ window.setPosterMargin = function(marginLeft, marginTop) {
+ var container = document.getElementById('inner_container');
+ container.style.marginLeft = marginLeft;
+ container.style.marginTop = marginTop;
+ };
</script>
</body>
</html>
« no previous file with comments | « no previous file | components/plugins/renderer/loadable_plugin_placeholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698