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

Side by Side Diff: chrome/renderer/resources/plugin_poster.html

Issue 866173002: Plugin Power Saver: Add UI Overlay to throttled plugin using placeholder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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>
7 function notifyDidFinishLoading() {
8 if (plugin.didFinishLoading)
9 plugin.didFinishLoading();
10 }
11 </script>
6 <link rel="stylesheet" href="plugin_placeholders.css"></link> 12 <link rel="stylesheet" href="plugin_placeholders.css"></link>
7 <style> 13 <style>
8 #outer { 14 #outer {
9 cursor: pointer; 15 cursor: pointer;
10 } 16 }
11 17
12 #plugin_icon { 18 #plugin_icon {
13 opacity: 0.0; 19 opacity: 0.0;
14 } 20 }
15 21
16 #outer:hover #plugin_icon { 22 #outer:hover #plugin_icon {
17 opacity: 0.4; 23 opacity: 0.4;
18 } 24 }
19 </style> 25 </style>
20 </head> 26 </head>
21 27
22 <body i18n-values=".style.background-image:background"> 28 <body i18n-values=".style.background-image:background" onload="notifyDidFinishLo ading();">
23 <div i18n-values="title:name" id="outer" onclick="plugin.load()"> 29 <div i18n-values="title:name" id="outer" onclick="plugin.load()">
24 <p id="debug"> </p> 30 <p id="debug"> </p>
25 <div id="inner"> 31 <div id="inner">
26 <div><img id="plugin_icon" src="plugin_blocked.png" /></div> 32 <div><img id="plugin_icon" src="plugin_blocked.png" /></div>
27 </div> 33 </div>
28 </div> 34 </div>
29 </body> 35 </body>
30 </html> 36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698