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

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 28 matching lines...) Expand all
39 margin:0px 87px 0px; 39 margin:0px 87px 0px;
40 font-size:18pt; 40 font-size:18pt;
41 line-height: 140%; 41 line-height: 140%;
42 margin-bottom:6pt; 42 margin-bottom:6pt;
43 font-weight:bold; 43 font-weight:bold;
44 color:#660000; 44 color:#660000;
45 } 45 }
46 .main { 46 .main {
47 margin:0px 90px 10px; 47 margin:0px 90px 10px;
48 } 48 }
49 .footer {
50 margin-top: 40px;
51 padding-top: 10px;
52 border-top: 1px solid #ddd;
53 }
49 .submission { 54 .submission {
50 margin:15px 5px 15px 0px; 55 margin:15px 5px 15px 0px;
51 padding:0px; 56 padding:0px;
52 } 57 }
53 input { 58 input {
54 margin:0px; 59 margin:0px;
55 } 60 }
56 .proceedbutton {
57 }
58 .helpbutton { 61 .helpbutton {
59 float:right; 62 float:right;
60 } 63 }
61 64
62 .example { 65 .example {
63 margin: 30px 90px 0px; 66 margin: 30px 90px 0px;
64 border-top:1px solid #ccc; 67 border-top:1px solid #ccc;
65 padding-top:6px; 68 padding-top:6px;
66 } 69 }
67 .moreinfotitle { 70 .moreinfotitle {
68 margin-left:5px; 71 margin-left:5px;
69 margin-right:5px; 72 margin-right:5px;
70 } 73 }
71 74
72
73 .green { 75 .green {
74 background: -webkit-linear-gradient(#83c260, #71b44c 44%, #549d2c); 76 background: -webkit-linear-gradient(#83c260, #71b44c 44%, #549d2c);
75 border: 1px solid #4c7336; 77 border: 1px solid #4c7336;
76 border-bottom: 1px solid #44692f; 78 border-bottom: 1px solid #44692f;
77 border-radius: 3px; 79 border-radius: 3px;
78 -webkit-box-shadow: inset 0 1px 0 0 #a0d186, 0px 1px 2px rgba(0,0,0,0.2); 80 -webkit-box-shadow: inset 0 1px 0 0 #a0d186, 0px 1px 2px rgba(0,0,0,0.2);
79 color: #fff; 81 color: #fff;
80 font-family: arial, helvetica, sans-serif; 82 font-family: arial, helvetica, sans-serif;
81 font-size: 14px; 83 font-size: 14px;
82 font-weight: bold; 84 font-weight: bold;
(...skipping 17 matching lines...) Expand all
100 background: -webkit-linear-gradient(#83c260, #71b44c 44%, #549d2c); 102 background: -webkit-linear-gradient(#83c260, #71b44c 44%, #549d2c);
101 border: 1px solid #3e612a; 103 border: 1px solid #3e612a;
102 border-top:1px solid #4c7336; 104 border-top:1px solid #4c7336;
103 border-bottom:1px solid #547b3f; 105 border-bottom:1px solid #547b3f;
104 -webkit-box-shadow: inset 1px 1px 1px 1px rgba(0, 0, 0, 0.1); 106 -webkit-box-shadow: inset 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
105 } 107 }
106 108
107 .green:focus { 109 .green:focus {
108 border: 1px solid #000; 110 border: 1px solid #000;
109 } 111 }
112
113 label.checkbox {
114 position: relative;
115 }
116
117 label.checkbox > input {
118 margin-top: 3px;
119 position: absolute;
120 }
121
122 label.checkbox > span {
123 -webkit-margin-start: 20px;
124 display: block;
125 }
110 </style> 126 </style>
111 127
112 <script> 128 <script>
113 function sendCommand(cmd) { 129 function sendCommand(cmd) {
114 window.domAutomationController.setAutomationId(1); 130 window.domAutomationController.setAutomationId(1);
115 window.domAutomationController.send(cmd); 131 window.domAutomationController.send(cmd);
116 } 132 }
133
134 function savePreference() {
135 var checkBox = document.getElementById('checkreport');
136 if (checkBox.checked) {
137 sendCommand('doReport');
138 } else {
139 sendCommand('dontReport');
140 }
141 }
117 </script> 142 </script>
118 143
119 </head> 144 </head>
120 <body oncontextmenu="return false;"> 145 <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> 146 <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"> 147 <table width="100%" cellspacing="0" cellpadding="0">
123 <td class="cell" valign="middle" align="center"> 148 <td class="cell" valign="middle" align="center">
124 <div class="box"> 149 <div class="box">
125 <div class="icon"><img src="shared/images/phishing_icon.png" alt="Malware Icon" onmousedown="return false;"/></div> 150 <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> 151 <div class="title" i18n-content="headLine"></div>
127 <div class="main" i18n-values=".innerHTML:description1"></div> 152 <div class="main" i18n-values=".innerHTML:description1"></div>
128 <div class="main" i18n-values=".innerHTML:description2"></div> 153 <div class="main" i18n-values=".innerHTML:description2"></div>
129 <div class="main" i18n-values=".innerHTML:description5" id="detailinfo" st yle="display:block"></div> 154 <div class="main" i18n-values=".innerHTML:description5" id="detailinfo" st yle="display:block"></div>
130 155
131 <div class="main"> 156 <div class="main">
132 <form class="submission"> 157 <form class="submission">
133 <input type="button" class="green" id="back" i18n-values="value:back_b utton" onclick="sendCommand('takeMeBack')"> 158 <input type="button" class="green" id="back" i18n-values="value:back_b utton" onclick="sendCommand('takeMeBack')">
134 <br> 159 <br>
135 </form> 160 </form>
136 </div> 161 </div>
137 162
138 <div class="main" i18n-values=".innerHTML:description3"></div> 163 <div class="main" i18n-values=".innerHTML:description3"></div>
139 164
165 <div class="main footer" jsdisplay="displaycheckbox">
166 <label class="checkbox" for="checkreport">
167 <input name="checked" id="checkreport" type="checkbox"
168 jsvalues=".checked:boxchecked" onclick="savePreference()">
169 <span i18n-content="confirm_text"></span>
170 </label>
171 </div>
172
140 </div> 173 </div>
141 </td> 174 </td>
142 </table> 175 </table>
143 </body> 176 </body>
144 </html> 177 </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