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

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: address bauerb and groby comments Created 5 years, 11 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..d82a5cba1c18b42e6784da56fab668341a4ae11e 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,20 +16,20 @@
}
#plugin_icon {
- opacity: 0.0;
+ opacity: 0.5;
}
#outer:hover #plugin_icon {
- opacity: 0.4;
+ opacity: 1.0;
}
</style>
</head>
-<body i18n-values=".style.background-image:background">
+<body i18n-values=".style.background-image:background" onload="notifyDidFinishLoading();">
<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><img id="plugin_icon" src="plugin_power_saver.png" /></div>
</div>
</div>
</body>

Powered by Google App Engine
This is Rietveld 408576698