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

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

Issue 2348693003: [HBD] Placeholder for Flash content without fallback. (Closed)
Patch Set: address comments 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..9d73dd5e396de980a074015e67712860289cc4aa
--- /dev/null
+++ b/chrome/renderer/resources/plugins/prefer_html_plugin.html
@@ -0,0 +1,44 @@
+<!doctype html>
+<html>
+<head>
+ <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>
« no previous file with comments | « chrome/renderer/plugins/chrome_plugin_placeholder.cc ('k') | chrome/renderer/resources/renderer_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698