OLD | NEW |
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 */ |
(...skipping 13 matching lines...) Expand all Loading... |
24 // Call superclass's constructor. | 24 // Call superclass's constructor. |
25 superClass.call(this, HSTSView.MAIN_BOX_ID); | 25 superClass.call(this, HSTSView.MAIN_BOX_ID); |
26 | 26 |
27 this.addInput_ = $(HSTSView.ADD_INPUT_ID); | 27 this.addInput_ = $(HSTSView.ADD_INPUT_ID); |
28 this.addCheck_ = $(HSTSView.ADD_CHECK_ID); | 28 this.addCheck_ = $(HSTSView.ADD_CHECK_ID); |
29 this.addPins_ = $(HSTSView.ADD_PINS_ID); | 29 this.addPins_ = $(HSTSView.ADD_PINS_ID); |
30 this.deleteInput_ = $(HSTSView.DELETE_INPUT_ID); | 30 this.deleteInput_ = $(HSTSView.DELETE_INPUT_ID); |
31 this.queryInput_ = $(HSTSView.QUERY_INPUT_ID); | 31 this.queryInput_ = $(HSTSView.QUERY_INPUT_ID); |
32 this.queryOutputDiv_ = $(HSTSView.QUERY_OUTPUT_DIV_ID); | 32 this.queryOutputDiv_ = $(HSTSView.QUERY_OUTPUT_DIV_ID); |
33 | 33 |
34 form = $(HSTSView.ADD_FORM_ID); | 34 var form = $(HSTSView.ADD_FORM_ID); |
35 form.addEventListener('submit', this.onSubmitAdd_.bind(this), false); | 35 form.addEventListener('submit', this.onSubmitAdd_.bind(this), false); |
| 36 |
36 form = $(HSTSView.DELETE_FORM_ID); | 37 form = $(HSTSView.DELETE_FORM_ID); |
37 form.addEventListener('submit', this.onSubmitDelete_.bind(this), false); | 38 form.addEventListener('submit', this.onSubmitDelete_.bind(this), false); |
38 var form = $(HSTSView.QUERY_FORM_ID); | 39 |
| 40 form = $(HSTSView.QUERY_FORM_ID); |
39 form.addEventListener('submit', this.onSubmitQuery_.bind(this), false); | 41 form.addEventListener('submit', this.onSubmitQuery_.bind(this), false); |
40 | 42 |
41 g_browser.addHSTSObserver(this); | 43 g_browser.addHSTSObserver(this); |
42 } | 44 } |
43 | 45 |
44 // ID for special HTML element in category_tabs.html | 46 // ID for special HTML element in category_tabs.html |
45 HSTSView.TAB_HANDLE_ID = 'tab-handle-hsts'; | 47 HSTSView.TAB_HANDLE_ID = 'tab-handle-hsts'; |
46 | 48 |
47 // IDs for special HTML elements in hsts_view.html | 49 // IDs for special HTML elements in hsts_view.html |
48 HSTSView.MAIN_BOX_ID = 'hsts-view-tab-content'; | 50 HSTSView.MAIN_BOX_ID = 'hsts-view-tab-content'; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 element.style.webkitTransitionDuration = '0'; | 157 element.style.webkitTransitionDuration = '0'; |
156 element.style.backgroundColor = '#fffccf'; | 158 element.style.backgroundColor = '#fffccf'; |
157 setTimeout(function() { | 159 setTimeout(function() { |
158 element.style.webkitTransitionDuration = '1000ms'; | 160 element.style.webkitTransitionDuration = '1000ms'; |
159 element.style.backgroundColor = '#fff'; | 161 element.style.backgroundColor = '#fff'; |
160 }, 0); | 162 }, 0); |
161 } | 163 } |
162 | 164 |
163 return HSTSView; | 165 return HSTSView; |
164 })(); | 166 })(); |
OLD | NEW |