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

Unified Diff: chrome/renderer/resources/plugins/prefer_html_plugin.html

Issue 2348693003: [HBD] Placeholder for Flash content without fallback. (Closed)
Patch Set: Created 4 years, 3 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/plugins/prefer_html_plugin.html
diff --git a/chrome/renderer/resources/plugins/prefer_html_plugin.html b/chrome/renderer/resources/plugins/prefer_html_plugin.html
new file mode 100644
index 0000000000000000000000000000000000000000..c5760b5596913bc15f089e9aa34b74375f0fb083
--- /dev/null
+++ b/chrome/renderer/resources/plugins/prefer_html_plugin.html
@@ -0,0 +1,44 @@
+<!doctype html>
+<html>
+ <head>
Bernhard Bauer 2016/09/16 10:21:04 Don't indent the <head> or <body> tags.
tommycli 2016/09/16 15:43:19 Done.
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, user-scalable=no">
+ <script>
+ function setMessage(msg) {
+ document.getElementById('message').textContent = msg;
+ }
+ function notifyDidFinishLoading() {
+ if (plugin.didFinishLoading)
+ plugin.didFinishLoading();
+
+ if (plugin.didFinishIconRepositionForTesting)
+ plugin.didFinishIconRepositionForTesting();
+ }
+ </script>
+ <link rel="stylesheet" href="plugin_placeholders.css"></link>
+ <style>
+ #outer {
+ cursor: pointer;
+ }
+ </style>
+ </head>
+ <body id="t" onload="notifyDidFinishLoading();">
+ <div i18n-values="title:name" id="outer">
+ <img class="icon"
+ src="../../../../ui/webui/resources/images/extension.svg">
+ <h1 id="message" i18n-content="message"></h1>
+ </div>
+ <script>
+ window.onkeydown = function(e) {
+ if (e.key == 'Enter' || e.key == ' ') {
+ plugin.showPermissionBubble();
+ e.preventDefault();
+ }
+ };
+
+ document.getElementById('outer').onclick = function() {
+ plugin.showPermissionBubble();
+ };
+ </script>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698