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

Unified Diff: chrome/renderer/resources/click_to_play_plugin.html

Issue 829113004: Plugin Power Saver: Add back 'Click to play' option as 4th for plugins. (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
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698