| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 * @constructor | 6 * @constructor |
| 7 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
| 8 */ | 8 */ |
| 9 WebInspector.NetworkConfigView = function() | 9 WebInspector.NetworkConfigView = function() |
| 10 { | 10 { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 _createCacheSection: function() | 35 _createCacheSection: function() |
| 36 { | 36 { |
| 37 var section = this._createSection(WebInspector.UIString("Disk cache"), "
network-config-disable-cache"); | 37 var section = this._createSection(WebInspector.UIString("Disk cache"), "
network-config-disable-cache"); |
| 38 section.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebIns
pector.UIString("Disable cache"), WebInspector.moduleSetting("cacheDisabled"), t
rue)); | 38 section.appendChild(WebInspector.SettingsUI.createSettingCheckbox(WebIns
pector.UIString("Disable cache"), WebInspector.moduleSetting("cacheDisabled"), t
rue)); |
| 39 }, | 39 }, |
| 40 | 40 |
| 41 _createNetworkThrottlingSection: function() | 41 _createNetworkThrottlingSection: function() |
| 42 { | 42 { |
| 43 var section = this._createSection(WebInspector.UIString("Network throttl
ing"), "network-config-throttling"); | 43 var section = this._createSection(WebInspector.UIString("Network throttl
ing"), "network-config-throttling"); |
| 44 new WebInspector.NetworkConditionsSelector(/** @type {!HTMLSelectElement
} */(section.createChild("select", "chrome-select"))); | 44 WebInspector.NetworkConditionsSelector.decorateSelect(/** @type {!HTMLSe
lectElement} */(section.createChild("select", "chrome-select"))); |
| 45 }, | 45 }, |
| 46 | 46 |
| 47 _createUserAgentSection: function() | 47 _createUserAgentSection: function() |
| 48 { | 48 { |
| 49 var section = this._createSection(WebInspector.UIString("User agent"), "
network-config-ua"); | 49 var section = this._createSection(WebInspector.UIString("User agent"), "
network-config-ua"); |
| 50 var checkboxLabel = createCheckboxLabel(WebInspector.UIString("Select au
tomatically"), true); | 50 var checkboxLabel = createCheckboxLabel(WebInspector.UIString("Select au
tomatically"), true); |
| 51 section.appendChild(checkboxLabel); | 51 section.appendChild(checkboxLabel); |
| 52 this._autoCheckbox = checkboxLabel.checkboxElement; | 52 this._autoCheckbox = checkboxLabel.checkboxElement; |
| 53 this._autoCheckbox.addEventListener("change", this._userAgentTypeChanged
.bind(this)); | 53 this._autoCheckbox.addEventListener("change", this._userAgentTypeChanged
.bind(this)); |
| 54 | 54 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 * @param {!WebInspector.Context} context | 224 * @param {!WebInspector.Context} context |
| 225 * @param {string} actionId | 225 * @param {string} actionId |
| 226 * @return {boolean} | 226 * @return {boolean} |
| 227 */ | 227 */ |
| 228 handleAction: function(context, actionId) | 228 handleAction: function(context, actionId) |
| 229 { | 229 { |
| 230 WebInspector.inspectorView.showViewInDrawer("network.config"); | 230 WebInspector.inspectorView.showViewInDrawer("network.config"); |
| 231 return true; | 231 return true; |
| 232 } | 232 } |
| 233 } | 233 } |
| OLD | NEW |