| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 }, | 326 }, |
| 327 | 327 |
| 328 _createNetworkConditionsElement: function() | 328 _createNetworkConditionsElement: function() |
| 329 { | 329 { |
| 330 var fieldsetElement = this.element.createChild("fieldset"); | 330 var fieldsetElement = this.element.createChild("fieldset"); |
| 331 fieldsetElement.createChild("span").textContent = WebInspector.UIString(
"Limit network throughput:"); | 331 fieldsetElement.createChild("span").textContent = WebInspector.UIString(
"Limit network throughput:"); |
| 332 | 332 |
| 333 var networkThroughput = WebInspector.overridesSupport.createNetworkThrou
ghputSelect(document); | 333 var networkThroughput = WebInspector.overridesSupport.createNetworkThrou
ghputSelect(document); |
| 334 fieldsetElement.appendChild(networkThroughput); | 334 fieldsetElement.appendChild(networkThroughput); |
| 335 | 335 |
| 336 var networkDomains = WebInspector.SettingsUI.createSettingInputField("Fo
r domains:", WebInspector.overridesSupport.settings.networkConditionsDomains, fa
lse, 0, "", WebInspector.OverridesSupport.networkDomainsValidator, false, false,
WebInspector.UIString("Leave empty to limit all domains")); | |
| 337 fieldsetElement.appendChild(networkDomains); | |
| 338 | |
| 339 WebInspector.overridesSupport.settings.networkConditionsThroughput.addCh
angeListener(this.updateActiveState, this); | 336 WebInspector.overridesSupport.settings.networkConditionsThroughput.addCh
angeListener(this.updateActiveState, this); |
| 340 }, | 337 }, |
| 341 | 338 |
| 342 /** | 339 /** |
| 343 * @return {boolean} | 340 * @return {boolean} |
| 344 */ | 341 */ |
| 345 _userAgentOverrideEnabled: function() | 342 _userAgentOverrideEnabled: function() |
| 346 { | 343 { |
| 347 return !!WebInspector.overridesSupport.settings.userAgent.get(); | 344 return !!WebInspector.overridesSupport.settings.userAgent.get(); |
| 348 }, | 345 }, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 WebInspector.OverridesView.Revealer.prototype = { | 646 WebInspector.OverridesView.Revealer.prototype = { |
| 650 /** | 647 /** |
| 651 * @param {!Object} overridesSupport | 648 * @param {!Object} overridesSupport |
| 652 */ | 649 */ |
| 653 reveal: function(overridesSupport) | 650 reveal: function(overridesSupport) |
| 654 { | 651 { |
| 655 InspectorFrontendHost.bringToFront(); | 652 InspectorFrontendHost.bringToFront(); |
| 656 WebInspector.inspectorView.showViewInDrawer("emulation"); | 653 WebInspector.inspectorView.showViewInDrawer("emulation"); |
| 657 } | 654 } |
| 658 } | 655 } |
| OLD | NEW |