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

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.2;
14 } 20 }
15 21
16 #outer:hover #plugin_icon { 22 #outer:hover #plugin_icon {
17 opacity: 0.4; 23 opacity: 1.0;
24 }
25
26 #inner {
27 margin-top: -23px;
18 } 28 }
19 </style> 29 </style>
20 </head> 30 </head>
21 31
22 <body i18n-values=".style.background-image:background"> 32 <body i18n-values=".style.background-image:background" onload="notifyDidFinishLo ading();">
23 <div i18n-values="title:name" id="outer" onclick="plugin.load()"> 33 <div i18n-values="title:name" id="outer" onclick="plugin.load()">
24 <p id="debug"> </p> 34 <div id="inner">
25 <div id="inner"> 35 <div><img id="plugin_icon" src="play.png" /></div>
26 <div><img id="plugin_icon" src="plugin_blocked.png" /></div> 36 <p id="debug"> </p>
27 </div> 37 </div>
28 </div> 38 </div>
29 </body> 39 </body>
30 </html> 40 </html>
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | components/plugins/renderer/loadable_plugin_placeholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698