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

Side by Side Diff: chrome/renderer/resources/plugins/disabled_plugin.html

Issue 2155493002: Update missing/downloading/blocked/unsupported/disabled plugin UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First review Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, user-scalable=no"> 5 <meta name="viewport" content="width=device-width, user-scalable=no">
6 <script> 6 <script>
7 function insertLink() { 7 function insertLink() {
8 // Replace the chrome://plugins text with a working link (i18n_template 8 // Replace the chrome://plugins text with a working link (i18n_template
9 // doesn't allow raw HTML in template data). 9 // doesn't allow raw HTML in template data).
10 var link = document.getElementById("enable_link"); 10 var link = document.getElementById("enable_link");
11 var link_html = link.innerHTML; 11 var link_html = link.innerHTML;
12 link.parentNode.removeChild(link); 12 link.parentNode.removeChild(link);
13 var message = document.getElementById("message"); 13 var message = document.getElementById("message");
14 var message_html = message.innerHTML; 14 var message_html = message.innerHTML;
15 message.innerHTML = message_html.replace('chrome://plugins', link_html); 15 message.innerHTML = message_html.replace('chrome://plugins', link_html);
16 } 16 }
17 </script> 17 </script>
18 <link rel="stylesheet" href="plugin_placeholders.css"></link> 18 <link rel="stylesheet" href="plugin_placeholders.css"></link>
19 <style> 19 <style>
20 body { 20 body {
21 background-color: rgb(187, 187, 187); 21 background-color: #f7f7f7;
22 } 22 color: #646464;
23 }
23 24
24 #plugin_icon { 25 .icon {
25 opacity: .6; 26 opacity: .3;
26 } 27 }
27 </style> 28 </style>
28 </head> 29 </head>
29 30
30 <body id="t" onLoad="insertLink()"> 31 <body id="t" onLoad="insertLink()">
31 <div i18n-values="title:name" id="outer"> 32 <div i18n-values="title:name" id="outer">
32 <div id="inner"> 33 <img class="icon"
33 <div><img id="plugin_icon" src="plugin_blocked.png" /></div> 34 src="../../../../ui/webui/resources/images/extension.svg">
34 <h1 id="message" i18n-content="message"></h1> 35 <h1 id="message" i18n-content="message"></h1>
35 <div id="enable_link"> 36 <div id="enable_link">
36 <a href="#" onclick="plugin.openAboutPlugins();">chrome://plugins</a> 37 <a href="#" onclick="plugin.openAboutPlugins();">chrome://plugins</a>
38 </div>
37 </div> 39 </div>
38 </div> 40 </body>
39 <div id="close" i18n-values="title:hide;data-plugin-type:pluginType"
40 onclick="plugin.hide();">
41 </div>
42 </div>
43 </body>
44 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698