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

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, 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..a4626fe5938345a189d2f87f559d3cbed0f5330b 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 {
@@ -19,7 +25,7 @@
</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">

Powered by Google App Engine
This is Rietveld 408576698