Index: chrome/renderer/resources/click_to_play_plugin.html |
diff --git a/chrome/renderer/resources/click_to_play_plugin.html b/chrome/renderer/resources/click_to_play_plugin.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e8f5b63eae96433fb4ed7d3cc317dbcc5352ffa5 |
--- /dev/null |
+++ b/chrome/renderer/resources/click_to_play_plugin.html |
@@ -0,0 +1,57 @@ |
+<!doctype html> |
+<html> |
+<head> |
+<meta charset="utf-8"> |
+<meta name="viewport" content="width=device-width, user-scalable=no"> |
+<script> |
+function debug(msg) { |
+ document.getElementById('debug').textContent = msg; |
+} |
+</script> |
+<link rel="stylesheet" href="plugin_placeholders.css"></link> |
+<style> |
+body { |
+ background-color: rgb(128, 128, 128); |
+} |
+ |
+body #outer:hover { |
+ background: -webkit-linear-gradient(#d2d2d2, #a5a5a5); |
+} |
+ |
+body #outer:active { |
+ background: -webkit-linear-gradient(#b9b9b9, #d2d2d2); |
+} |
+ |
+#plugin_icon { |
+ opacity: .4; |
+} |
+ |
+#outer:hover #plugin_icon { |
+ opacity: 1.0; |
+} |
+ |
+#outer { |
+ cursor: pointer; |
+} |
+</style> |
+</head> |
+ |
+<body id="t"> |
+<div i18n-values="title:name" id="outer" onclick="plugin.load()"> |
+<div id="inner"> |
+<div><img id="plugin_icon" src="plugin_blocked.png" /></div> |
+<h1 i18n-content="message">PLUGIN_LOAD</h1> |
+<p id="debug"> </p> |
+</div> |
+<div id="close" i18n-values="title:hide" onclick="event.stopPropagation(); plugin.hide()" /> |
+</div> |
+<script> |
+size = document.getElementById('outer'); |
+style = getComputedStyle(size); |
+if (parseInt(style.width) < 32 && parseInt(style.height) < 32) { |
+ i = document.getElementById('close'); |
+ i.parentNode.removeChild(i); |
+} |
+</script> |
+</body> |
+</html> |