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

Side by Side Diff: chrome/browser/resources/safe_browsing_malware_block.html

Issue 6066011: Add a checkbox to the malware interstitial page, for user to opt-in to send m... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html id="template_root" i18n-values="dir:textdirection"> 2 <html id="template_root" i18n-values="dir:textdirection">
3 <head> 3 <head>
4 <title i18n-content="title"></title> 4 <title i18n-content="title"></title>
5 <style> 5 <style>
6 body { 6 body {
7 background-color:#500; 7 background-color:#500;
8 font-family:Helvetica,Arial,sans-serif; 8 font-family:Helvetica,Arial,sans-serif;
9 margin:0px; 9 margin:0px;
10 } 10 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 .green:focus { 107 .green:focus {
108 border: 1px solid #000; 108 border: 1px solid #000;
109 } 109 }
110 </style> 110 </style>
111 111
112 <script> 112 <script>
113 function sendCommand(cmd) { 113 function sendCommand(cmd) {
114 window.domAutomationController.setAutomationId(1); 114 window.domAutomationController.setAutomationId(1);
115 window.domAutomationController.send(cmd); 115 window.domAutomationController.send(cmd);
116 } 116 }
117
118 function savepreference() {
arv (Not doing code reviews) 2011/01/05 21:33:14 savePreference
panayiotis 2011/01/05 23:00:05 Done.
119 var checkBox = document.getElementById('checkreport');
120 if (checkBox.checked) {
121 sendCommand('doReport');
122 } else {
123 sendCommand('dontReport');
124 }
125 }
117 </script> 126 </script>
118 127
119 </head> 128 </head>
120 <body oncontextmenu="return false;"> 129 <body oncontextmenu="return false;">
121 <div class="background"><img src="../security/resources/ssl_roadblock_background .png" width="100%" height="100%" alt="background" onmousedown="return false;"/>< /div> 130 <div class="background"><img src="../security/resources/ssl_roadblock_background .png" width="100%" height="100%" alt="background" onmousedown="return false;"/>< /div>
122 <table width="100%" cellspacing="0" cellpadding="0"> 131 <table width="100%" cellspacing="0" cellpadding="0">
123 <td class="cell" valign="middle" align="center"> 132 <td class="cell" valign="middle" align="center">
124 <div class="box"> 133 <div class="box">
125 <div class="icon"><img src="shared/images/phishing_icon.png" alt="Malware Icon" onmousedown="return false;"/></div> 134 <div class="icon"><img src="shared/images/phishing_icon.png" alt="Malware Icon" onmousedown="return false;"/></div>
126 <div class="title" i18n-content="headLine"></div> 135 <div class="title" i18n-content="headLine"></div>
127 <div class="main" i18n-values=".innerHTML:description1"></div> 136 <div class="main" i18n-values=".innerHTML:description1"></div>
128 <div class="main" i18n-values=".innerHTML:description2"></div> 137 <div class="main" i18n-values=".innerHTML:description2"></div>
129 <div class="main" i18n-values=".innerHTML:description5" id="detailinfo" st yle="display:block"></div> 138 <div class="main" i18n-values=".innerHTML:description5" id="detailinfo" st yle="display:block"></div>
130 139
131 <div class="main"> 140 <div class="main">
132 <form class="submission"> 141 <form class="submission">
133 <input type="button" class="green" id="back" i18n-values="value:back_b utton" onclick="sendCommand('takeMeBack')"> 142 <input type="button" class="green" id="back" i18n-values="value:back_b utton" onclick="sendCommand('takeMeBack')">
134 <br> 143 <br>
135 </form> 144 </form>
136 </div> 145 </div>
137 146
138 <div class="main" i18n-values=".innerHTML:description3"></div> 147 <div class="main" i18n-values=".innerHTML:description3"></div>
139 148
149 <div class="main" jsdisplay="displaycheckbox">
150 <hr>
151 <form class="submission">
152 <input name="checked" id="checkreport" type="checkbox" jsvalues=".chec ked:boxchecked" onclick="savepreference()">&nbsp;<label for="checkreport" i18n-c ontent="confirm_text"></label>
arv (Not doing code reviews) 2011/01/05 21:33:14 Long line
arv (Not doing code reviews) 2011/01/05 21:33:14 Can you use a margin instead of the &nbsp;
arv (Not doing code reviews) 2011/01/05 21:33:14 The label should go around the input <label><inpu
panayiotis 2011/01/05 23:00:05 Done.
panayiotis 2011/01/05 23:00:05 Done.
panayiotis 2011/01/05 23:00:05 Done.
153 </form>
154 </div>
155
140 </div> 156 </div>
141 </td> 157 </td>
142 </table> 158 </table>
143 </body> 159 </body>
144 </html> 160 </html>
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/safe_browsing/safe_browsing_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698