| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 this._userAgentTypeChanged(this._autoUserAgentRadio); | 74 this._userAgentTypeChanged(this._autoUserAgentRadio); |
| 75 }, | 75 }, |
| 76 | 76 |
| 77 _userAgentChanged: function() | 77 _userAgentChanged: function() |
| 78 { | 78 { |
| 79 this._autoUserAgent.value = WebInspector.multitargetNetworkManager.userA
gentOverride() || WebInspector.UIString("Default"); | 79 this._autoUserAgent.value = WebInspector.multitargetNetworkManager.userA
gentOverride() || WebInspector.UIString("Default"); |
| 80 }, | 80 }, |
| 81 | 81 |
| 82 _customUserAgentChanged: function() | 82 _customUserAgentChanged: function() |
| 83 { | 83 { |
| 84 if (!this._customUserAgent.checked) | 84 if (!this._customUserAgentRadio.checked) |
| 85 return; | 85 return; |
| 86 WebInspector.multitargetNetworkManager.setCustomUserAgentOverride(this._
customUserAgentSetting.get()); | 86 WebInspector.multitargetNetworkManager.setCustomUserAgentOverride(this._
customUserAgentSetting.get()); |
| 87 }, | 87 }, |
| 88 | 88 |
| 89 /** | 89 /** |
| 90 * @param {!Element} radioElement | 90 * @param {!Element} radioElement |
| 91 */ | 91 */ |
| 92 _userAgentTypeChanged: function(radioElement) | 92 _userAgentTypeChanged: function(radioElement) |
| 93 { | 93 { |
| 94 var useCustomUA = radioElement === this._customUserAgentRadio; | 94 var useCustomUA = radioElement === this._customUserAgentRadio; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 * @param {!WebInspector.Context} context | 244 * @param {!WebInspector.Context} context |
| 245 * @param {string} actionId | 245 * @param {string} actionId |
| 246 * @return {boolean} | 246 * @return {boolean} |
| 247 */ | 247 */ |
| 248 handleAction: function(context, actionId) | 248 handleAction: function(context, actionId) |
| 249 { | 249 { |
| 250 WebInspector.inspectorView.showViewInDrawer("network.config"); | 250 WebInspector.inspectorView.showViewInDrawer("network.config"); |
| 251 return true; | 251 return true; |
| 252 } | 252 } |
| 253 } | 253 } |
| OLD | NEW |