Chromium Code Reviews| Index: chrome/browser/resources/safe_browsing_malware_block.html |
| =================================================================== |
| --- chrome/browser/resources/safe_browsing_malware_block.html (revision 70457) |
| +++ chrome/browser/resources/safe_browsing_malware_block.html (working copy) |
| @@ -46,6 +46,11 @@ |
| .main { |
| margin:0px 90px 10px; |
| } |
| +.footer { |
| + margin-top: 40px; |
| + padding-top: 10px; |
| + border-top: 1px solid #ddd; |
| +} |
| .submission { |
| margin:15px 5px 15px 0px; |
| padding:0px; |
| @@ -53,8 +58,6 @@ |
| input { |
| margin:0px; |
| } |
| -.proceedbutton { |
| -} |
| .helpbutton { |
| float:right; |
| } |
| @@ -69,7 +72,6 @@ |
| margin-right:5px; |
| } |
| - |
| .green { |
| background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#83c260), color-stop(44%,#71b44c), color-stop(100%,#549d2c)); |
| border: 1px solid #4c7336; |
| @@ -107,6 +109,20 @@ |
| .green:focus { |
| border: 1px solid #000; |
| } |
| + |
| +label.checkbox { |
| + position: relative; |
| +} |
| + |
| +label.checkbox > input { |
| + margin-top: 3px; |
| + position: absolute; |
| +} |
| + |
| +label.checkbox > span { |
| + -webkit-margin-start: 20px; |
| + display: block; |
| +} |
| </style> |
| <script> |
| @@ -114,6 +130,15 @@ |
| window.domAutomationController.setAutomationId(1); |
| window.domAutomationController.send(cmd); |
| } |
| + |
| + function savePreference() { |
| + var checkBox = document.getElementById('checkreport'); |
| + if (checkBox.checked) { |
| + sendCommand('doReport'); |
| + } else { |
| + sendCommand('dontReport'); |
| + } |
| + } |
| </script> |
| </head> |
| @@ -137,6 +162,16 @@ |
| <div class="main" i18n-values=".innerHTML:description3"></div> |
| + <div class="main footer" jsdisplay="displaycheckbox"> |
| + <form> |
|
arv (Not doing code reviews)
2011/01/06 00:36:06
This form element is not needed.
|
| + <label class="checkbox" for="checkreport"> |
| + <input name="checked" id="checkreport" type="checkbox" |
| + jsvalues=".checked:boxchecked" onclick="savePreference()"> |
| + <span i18n-content="confirm_text"></span> |
| + </label> |
| + </form> |
| + </div> |
| + |
| </div> |
| </td> |
| </table> |