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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/plugins/renderer/loadable_plugin_placeholder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, user-scalable=no"> 5 <meta name="viewport" content="width=device-width, user-scalable=no">
6 <script> 6 <script>
7 window.onload = function() { 7 window.onload = function() {
8 if (plugin.didFinishLoading) 8 if (plugin.didFinishLoading)
9 plugin.didFinishLoading(); 9 plugin.didFinishLoading();
10 }; 10 };
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 </div> 75 </div>
76 </div> 76 </div>
77 <script> 77 <script>
78 document.getElementById('poster').onerror = function() { 78 document.getElementById('poster').onerror = function() {
79 this.hidden = true; 79 this.hidden = true;
80 }; 80 };
81 81
82 document.getElementById('outer').onclick = function() { 82 document.getElementById('outer').onclick = function() {
83 plugin.load(); 83 plugin.load();
84 }; 84 };
85
86 window.setPosterMargin = function(marginLeft, marginTop) {
87 var container = document.getElementById('inner_container');
88 container.style.marginLeft = marginLeft;
89 container.style.marginTop = marginTop;
90 };
85 </script> 91 </script>
86 </body> 92 </body>
87 </html> 93 </html>
OLDNEW
« 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