| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 function textKeyDown(event) | 152 function textKeyDown(event) |
| 153 { | 153 { |
| 154 if (isEnterKey(event)) | 154 if (isEnterKey(event)) |
| 155 textChanged(); | 155 textChanged(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 function textDoubleClicked() | 158 function textDoubleClicked() |
| 159 { | 159 { |
| 160 if (userAgentSelectElement.selectedIndex === userAgents.length - 1) |
| 161 return; |
| 160 userAgentSelectElement.selectedIndex = userAgents.length - 1; | 162 userAgentSelectElement.selectedIndex = userAgents.length - 1; |
| 161 userAgentSelected(); | 163 userAgentSelected(); |
| 162 } | 164 } |
| 163 | 165 |
| 164 function textChanged() | 166 function textChanged() |
| 165 { | 167 { |
| 166 if (userAgentSetting.get() !== otherUserAgentElement.value) { | 168 if (userAgentSetting.get() !== otherUserAgentElement.value) { |
| 167 userAgentSetting.set(otherUserAgentElement.value); | 169 userAgentSetting.set(otherUserAgentElement.value); |
| 168 settingChanged(); | 170 settingChanged(); |
| 169 } | 171 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 * @param {!WebInspector.Context} context | 224 * @param {!WebInspector.Context} context |
| 223 * @param {string} actionId | 225 * @param {string} actionId |
| 224 * @return {boolean} | 226 * @return {boolean} |
| 225 */ | 227 */ |
| 226 handleAction: function(context, actionId) | 228 handleAction: function(context, actionId) |
| 227 { | 229 { |
| 228 WebInspector.inspectorView.showViewInDrawer("network.config"); | 230 WebInspector.inspectorView.showViewInDrawer("network.config"); |
| 229 return true; | 231 return true; |
| 230 } | 232 } |
| 231 } | 233 } |
| OLD | NEW |