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

Side by Side Diff: chrome/browser/resources/net_internals/hsts_view.js

Issue 7564029: Use javascript strict mode throughout a number of net-internals files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix one more var Created 9 years, 4 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 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 /** 5 /**
6 * HSTS is HTTPS Strict Transport Security: a way for sites to elect to always 6 * HSTS is HTTPS Strict Transport Security: a way for sites to elect to always
7 * use HTTPS. See http://dev.chromium.org/sts 7 * use HTTPS. See http://dev.chromium.org/sts
8 * 8 *
9 * This UI allows a user to query and update the browser's list of HSTS domains. 9 * This UI allows a user to query and update the browser's list of HSTS domains.
10 */ 10 */
11 11
12 var HSTSView = (function() { 12 var HSTSView = (function() {
13 'use strict';
14
13 // IDs for special HTML elements in hsts_view.html 15 // IDs for special HTML elements in hsts_view.html
14 const MAIN_BOX_ID = 'hsts-view-tab-content'; 16 var MAIN_BOX_ID = 'hsts-view-tab-content';
15 const QUERY_INPUT_ID = 'hsts-view-query-input'; 17 var QUERY_INPUT_ID = 'hsts-view-query-input';
16 const FORM_ID = 'hsts-view-query-form'; 18 var FORM_ID = 'hsts-view-query-form';
17 const QUERY_OUTPUT_DIV_ID = 'hsts-view-query-output'; 19 var QUERY_OUTPUT_DIV_ID = 'hsts-view-query-output';
18 const ADD_INPUT_ID = 'hsts-view-add-input'; 20 var ADD_INPUT_ID = 'hsts-view-add-input';
19 const ADD_FORM_ID = 'hsts-view-add-form'; 21 var ADD_FORM_ID = 'hsts-view-add-form';
20 const ADD_CHECK_ID = 'hsts-view-check-input'; 22 var ADD_CHECK_ID = 'hsts-view-check-input';
21 const ADD_PINS_ID = 'hsts-view-add-pins'; 23 var ADD_PINS_ID = 'hsts-view-add-pins';
22 const DELETE_INPUT_ID = 'hsts-view-delete-input'; 24 var DELETE_INPUT_ID = 'hsts-view-delete-input';
23 const DELETE_FORM_ID = 'hsts-view-delete-form'; 25 var DELETE_FORM_ID = 'hsts-view-delete-form';
24 26
25 // We inherit from DivView. 27 // We inherit from DivView.
26 var superClass = DivView; 28 var superClass = DivView;
27 29
28 /** 30 /**
29 * @constructor 31 * @constructor
30 */ 32 */
31 function HSTSView() { 33 function HSTSView() {
34 assertFirstConstructorCall(HSTSView);
35
32 // Call superclass's constructor. 36 // Call superclass's constructor.
33 superClass.call(this, MAIN_BOX_ID); 37 superClass.call(this, MAIN_BOX_ID);
34 38
35 this.queryInput_ = $(QUERY_INPUT_ID); 39 this.queryInput_ = $(QUERY_INPUT_ID);
36 this.addCheck_ = $(ADD_CHECK_ID); 40 this.addCheck_ = $(ADD_CHECK_ID);
37 this.addInput_ = $(ADD_INPUT_ID); 41 this.addInput_ = $(ADD_INPUT_ID);
38 this.addPins_ = $(ADD_PINS_ID); 42 this.addPins_ = $(ADD_PINS_ID);
39 this.deleteInput_ = $(DELETE_INPUT_ID); 43 this.deleteInput_ = $(DELETE_INPUT_ID);
40 this.queryOutputDiv_ = $(QUERY_OUTPUT_DIV_ID); 44 this.queryOutputDiv_ = $(QUERY_OUTPUT_DIV_ID);
41 45
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 element.style.webkitTransitionDuration = '0'; 149 element.style.webkitTransitionDuration = '0';
146 element.style.backgroundColor = '#fffccf'; 150 element.style.backgroundColor = '#fffccf';
147 setTimeout(function() { 151 setTimeout(function() {
148 element.style.webkitTransitionDuration = '1000ms'; 152 element.style.webkitTransitionDuration = '1000ms';
149 element.style.backgroundColor = '#fff'; 153 element.style.backgroundColor = '#fff';
150 }, 0); 154 }, 0);
151 } 155 }
152 156
153 return HSTSView; 157 return HSTSView;
154 })(); 158 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/export_view.js ('k') | chrome/browser/resources/net_internals/http_cache_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698