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

Side by Side Diff: chrome/renderer/resources/blocked_plugin.html

Issue 1126073003: Plugin Placeholders: Refactor for platforms that don't support plugins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: The version that was reverted. Created 5 years, 6 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
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | components/plugins.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <if expr="not is_android">
6 <script> 7 <script>
7 function debug(msg) {
8 document.getElementById('debug').textContent = msg;
9 }
10 function setMessage(msg) { 8 function setMessage(msg) {
11 document.getElementById('message').textContent = msg; 9 document.getElementById('message').textContent = msg;
12 } 10 }
13 function notifyDidFinishLoading() { 11 function notifyDidFinishLoading() {
14 if (plugin.didFinishLoading) 12 if (plugin.didFinishLoading)
15 plugin.didFinishLoading(); 13 plugin.didFinishLoading();
16 } 14 }
17 </script> 15 </script>
16 </if>
17 <if expr="is_android">
18 <script>
19 function notifyDidFinishLoading() {}
20 </script>
21 </if>
18 <link rel="stylesheet" href="plugin_placeholders.css"></link> 22 <link rel="stylesheet" href="plugin_placeholders.css"></link>
19 <style> 23 <style>
20 body { 24 body {
21 background-color: rgb(187, 187, 187); 25 background-color: rgb(187, 187, 187);
22 } 26 }
23 27
24 #plugin_icon { 28 #plugin_icon {
25 opacity: .6; 29 opacity: .6;
26 } 30 }
27 </style> 31 </style>
28 </head> 32 </head>
29 33
30 <body id="t" onload="notifyDidFinishLoading();"> 34 <body id="t" onload="notifyDidFinishLoading();">
31 <div i18n-values="title:name" id="outer"> 35 <div i18n-values="title:name" id="outer">
32 <div id="inner"> 36 <div id="inner">
33 <if expr="not is_android"> 37 <if expr="not is_android">
34 <div><img id="plugin_icon" src="plugin_blocked.png"></div> 38 <div><img id="plugin_icon" src="plugin_blocked.png"></div>
35 </if> 39 </if>
36 <if expr="is_android"> 40 <if expr="is_android">
37 <img id="plugin_icon" src="plugin_blocked_android.png"> 41 <img id="plugin_icon" src="plugin_blocked_android.png">
38 </if> 42 </if>
39 <h1 id="message" i18n-content="message"></h1> 43 <h1 id="message" i18n-content="message"></h1>
40 <p id="debug"> </p>
41 </div> 44 </div>
42 <div id="close" i18n-values="title:hide" onclick="plugin.hide();"></div> 45 <div id="close" i18n-values="title:hide" onclick="plugin.hide();"></div>
43 </div> 46 </div>
44 </body> 47 </body>
45 </html> 48 </html>
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.cc ('k') | components/plugins.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698