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

Side by Side Diff: chrome/browser/resources/ssl/ssl_errors_common.js

Issue 57183002: Fix the SSL interstitial UMA stats (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comment Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Should match SSLBlockingPageCommands in ssl_blocking_page.cc. 5 // Should match SSLBlockingPageCommands in ssl_blocking_page.cc.
6 var CMD_DONT_PROCEED = 0; 6 var CMD_DONT_PROCEED = 0;
7 var CMD_PROCEED = 1; 7 var CMD_PROCEED = 1;
8 var CMD_FOCUS = 2; 8 var CMD_MORE = 2;
9 var CMD_MORE = 3; 9 var CMD_RELOAD = 3;
10 var CMD_RELOAD = 4;
11 10
12 var keyPressState = 0; 11 var keyPressState = 0;
13 12
14 function $(o) { 13 function $(o) {
15 return document.getElementById(o); 14 return document.getElementById(o);
16 } 15 }
17 16
18 function sendCommand(cmd) { 17 function sendCommand(cmd) {
19 window.domAutomationController.setAutomationId(1); 18 window.domAutomationController.setAutomationId(1);
20 window.domAutomationController.send(cmd); 19 window.domAutomationController.send(cmd);
(...skipping 14 matching lines...) Expand all
35 } 34 }
36 35
37 function sharedSetup() { 36 function sharedSetup() {
38 document.addEventListener('contextmenu', function(e) { 37 document.addEventListener('contextmenu', function(e) {
39 e.preventDefault(); 38 e.preventDefault();
40 }); 39 });
41 document.addEventListener('keypress', keyPressHandler); 40 document.addEventListener('keypress', keyPressHandler);
42 } 41 }
43 42
44 document.addEventListener('DOMContentLoaded', sharedSetup); 43 document.addEventListener('DOMContentLoaded', sharedSetup);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698