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> |