| 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 * This view displays information related to HTTP throttling. | 6 * This view displays information related to HTTP throttling. |
| 7 * @constructor | 7 * @constructor |
| 8 */ | 8 */ |
| 9 function HttpThrottlingView() { | 9 function HttpThrottlingView() { |
| 10 const mainBoxId = 'httpThrottlingTabContent'; | 10 const mainBoxId = 'httpThrottlingTabContent'; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 enabled) { | 28 enabled) { |
| 29 this.enableCheckbox_.checked = enabled; | 29 this.enableCheckbox_.checked = enabled; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 /** | 32 /** |
| 33 * Handler for the onclick event of the checkbox. | 33 * Handler for the onclick event of the checkbox. |
| 34 */ | 34 */ |
| 35 HttpThrottlingView.prototype.onEnableCheckboxClicked_ = function() { | 35 HttpThrottlingView.prototype.onEnableCheckboxClicked_ = function() { |
| 36 g_browser.enableHttpThrottling(this.enableCheckbox_.checked); | 36 g_browser.enableHttpThrottling(this.enableCheckbox_.checked); |
| 37 }; | 37 }; |
| OLD | NEW |