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

Side by Side 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: Remove keyframe size tracking. Unnecessary. Created 5 years, 8 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
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 function notifyDidFinishLoading() { 7 function notifyDidFinishLoading() {
8 if (plugin.didFinishLoading) 8 if (plugin.didFinishLoading)
9 plugin.didFinishLoading(); 9 plugin.didFinishLoading();
10 } 10 }
(...skipping 30 matching lines...) Expand all
41 #plugin_icon:hover { 41 #plugin_icon:hover {
42 opacity: 0.95; 42 opacity: 0.95;
43 } 43 }
44 44
45 #poster { 45 #poster {
46 height: 100%; 46 height: 100%;
47 width: 100%; 47 width: 100%;
48 z-index: 1; 48 z-index: 1;
49 } 49 }
50 50
51 #innerContainer {
52 height: 100%;
53 width: 100%;
54 position: relative;
55 }
56
51 #inner { 57 #inner {
52 margin-top: -25px; 58 margin-top: -25px;
53 } 59 }
54 </style> 60 </style>
55 <base i18n-values="href:baseurl"> 61 <base i18n-values="href:baseurl">
56 </head> 62 </head>
57 63
58 <body onload="notifyDidFinishLoading();"> 64 <body onload="notifyDidFinishLoading();">
59 <div i18n-values="title:name" id="outer" onclick="plugin.load()"> 65 <div i18n-values="title:name" id="outer" onclick="plugin.load()">
60 <img id="poster" i18n-values="srcset:poster"> 66 <img id="poster" i18n-values="srcset:poster">
61 <div id="shielding"> 67 <div id="shielding">
62 <div id="inner"> 68 <div id="innerContainer"
Lei Zhang 2015/04/01 00:51:08 "inner_container" to be consistent with "plugin_ic
tommycli 2015/04/01 18:55:28 Done.
63 <div><img id="plugin_icon" src="plugin_power_saver_play.png" /></div> 69 i18n-values=".style.width:visibleWidth;.style.height:visibleHeight">
70 <div id="inner">
71 <img id="plugin_icon" src="plugin_power_saver_play.png" />
72 </div>
64 </div> 73 </div>
65 </div> 74 </div>
66 </div> 75 </div>
67 </body> 76 </body>
68 </html> 77 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698