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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 * @param {!WebInspector.Context} context | 248 * @param {!WebInspector.Context} context |
249 * @param {string} actionId | 249 * @param {string} actionId |
250 * @return {boolean} | 250 * @return {boolean} |
251 */ | 251 */ |
252 handleAction: function(context, actionId) | 252 handleAction: function(context, actionId) |
253 { | 253 { |
254 WebInspector.inspectorView.showViewInDrawer("network.config"); | 254 WebInspector.inspectorView.showViewInDrawer("network.config"); |
255 return true; | 255 return true; |
256 } | 256 } |
257 } | 257 } |
OLD | NEW |