Chromium Code Reviews| 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> |