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

Unified Diff: chrome/browser/resources/safe_browsing_multiple_threat_block.html

Issue 18346: Adds support for multiple malware/phishing resources in a page (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/safe_browsing_multiple_threat_block.html
===================================================================
--- chrome/browser/resources/safe_browsing_multiple_threat_block.html (revision 0)
+++ chrome/browser/resources/safe_browsing_multiple_threat_block.html (revision 0)
@@ -0,0 +1,142 @@
+<html id="template_root">
+
+<head>
+<title jscontent="title"></title>
+<style type="text/css">
+body {
+ background-color:#500;
+ font-family:arial;
+ margin:0px;
+}
+.background {
+ position:absolute;
+ width:100%;
+ height:100%;
+}
+.cell {
+ padding:40px;
+}
+.box {
+ width:80%;
+ background-color:white;
+ color:black;
+ font-size:10pt;
+ line-height:16pt;
+ text-align:left;
+ padding:20px;
+ position:relative;
+ -webkit-box-shadow:3px 3px 8px #200;
+ -webkit-border-radius:5px;
+}
+html[dir='rtl'] .box {
+ text-align:right;
+}
+
+.icon {
+ position:absolute;
+}
+.title {
+ margin:0px 87px 0px;
+ font-size:18pt;
+ margin-bottom:6pt;
+ font-weight:bold;
+ color:#660000;
+}
+.main {
+ margin:0px 90px 0px;
+}
+.submission {
+ margin:15px 5px 15px 0px;
+ padding:0px;
+}
+input {
+ margin:0px;
+}
+.proceedbutton {
+}
+.helpbutton {
+ float:right;
+}
+.example {
+ margin: 30px 90px 0px;
+ border-top:1px solid #ccc;
+ padding-top:6px;
+}
+.moreinfotitle {
+ margin-left:5px;
+ margin-right:5px;
+}
+
+.errorlist {
+ background-color:white;
+ color:black;
+ font-size:10pt;
+ line-height:16pt;
+ text-align:left;
+}
+</style>
+
+<script>
+function agreed(form) {
+ form.continue_button.disabled = !form.continue_button.disabled;
+}
+
+function sendCommand(command) {
+ window.domAutomationController.setAutomationId(1);
+ window.domAutomationController.send(command);
+}
+
+function showDiagnostic(errorID) {
+ sendCommand("showDiagnostic:" + errorID);
+}
+
+function reportError(errorID) {
+ sendCommand("reportError:" + errorID);
+}
+
+function learnMore() {
+ sendCommand("learnMore");
+}
+
+function proceed() {
+ sendCommand("proceed");
+}
+
+function takeMeBack() {
+ sendCommand("takeMeBack");
+}
+</script>
+</head>
+
+<body oncontextmenu="return false;">
+<div class="background"><img src="../security/resources/ssl_roadblock_background.png" width="100%" height="100%" alt="background" onmousedown="return false;"/></div>
+<table width="100%" cellspacing="0" cellpadding="0">
+ <td class="cell" valign="middle" align="center">
+ <div class="box">
+ <div class="icon"><img src="phishing_icon.png" alt="Malware Icon" onmousedown="return false;"/></div>
+ <div class="title" jscontent="headLine"></div>
+ <div class="main" jseval="this.innerHTML = $this.description1;"></div>
+ <div class="main" jscontent="description2"></div>
+ <div class="main">
+ <table cellpadding="5" jsvalues="$counter:{value: 0}">
+ <tr jsselect="errors" class="errorlist">
+ <td jscontent="typeLabel"></td>
+ <td jscontent="url"></td>
+ <td><a href="" onclick="var id= this.getAttribute('chromiumID'); this.getAttribute('chromiumIsMalware') ? showDiagnostic(id) : reportError(id); return false;" jscontent="errorLink" jsvalues="chromiumID:$counter.value;chromiumIsMalware:type=='malware'" jseval="$counter.value++"></a></td>
+ </tr>
+ </table>
+ </div>
+
+ <div class="main"><a href="" jscontent="description3" onclick="learnMore(); return false;" onmousedown="return false;"></a></div>
+ <div class="main">
+ <form class="submission">
+ <input name="checky" type="checkbox" onclick="agreed(this.form)">&nbsp;<span jscontent="confirm_text"></span>
+ <input type="button" name="continue_button" jsvalues="value:continue_button" disabled="true" onclick="proceed();"><br>
+ <input type="button" name="back_button" jsvalues="value:back_button" onclick="takeMeBack()">
+ </form>
+ </div>
+ </div>
+ </td>
+</table>
+</body>
+</html>
Property changes on: chrome\browser\resources\safe_browsing_multiple_threat_block.html
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/resources/safe_browsing_malware_block.html ('k') | chrome/browser/resources/safe_browsing_phishing_block.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698