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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/plugin_poster.html
diff --git a/chrome/renderer/resources/plugin_poster.html b/chrome/renderer/resources/plugin_poster.html
index b372878bf0f6d3f76e2517b5ae2b82aa25b1515e..790f4d98e51748b7aa895ccc8c6278322af53426 100644
--- a/chrome/renderer/resources/plugin_poster.html
+++ b/chrome/renderer/resources/plugin_poster.html
@@ -3,6 +3,12 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
+<script>
+function notifyDidFinishLoading() {
+ if (plugin.didFinishLoading)
+ plugin.didFinishLoading();
+}
+</script>
<link rel="stylesheet" href="plugin_placeholders.css"></link>
<style>
#outer {
@@ -10,21 +16,25 @@
}
#plugin_icon {
- opacity: 0.0;
+ opacity: 0.2;
}
#outer:hover #plugin_icon {
- opacity: 0.4;
+ opacity: 1.0;
+}
+
+#inner {
+ margin-top: -23px;
}
</style>
</head>
-<body i18n-values=".style.background-image:background">
-<div i18n-values="title:name" id="outer" onclick="plugin.load()">
-<p id="debug"> </p>
-<div id="inner">
-<div><img id="plugin_icon" src="plugin_blocked.png" /></div>
-</div>
-</div>
+<body i18n-values=".style.background-image:background" onload="notifyDidFinishLoading();">
+ <div i18n-values="title:name" id="outer" onclick="plugin.load()">
+ <div id="inner">
+ <div><img id="plugin_icon" src="play.png" /></div>
+ <p id="debug"> </p>
+ </div>
+ </div>
</body>
</html>
« 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