| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 4 * Copyright (C) 2009 Joseph Pecoraro | 4 * Copyright (C) 2009 Joseph Pecoraro |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 Runtime.experiments.register("cpuThrottling", "CPU throttling", true); | 109 Runtime.experiments.register("cpuThrottling", "CPU throttling", true); |
| 110 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source
map auto-stepping"); | 110 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source
map auto-stepping"); |
| 111 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve
nts on Timeline overview", true); | 111 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve
nts on Timeline overview", true); |
| 112 Runtime.experiments.register("layersPanel", "Layers panel"); | 112 Runtime.experiments.register("layersPanel", "Layers panel"); |
| 113 Runtime.experiments.register("layoutEditor", "Layout editor", true); | 113 Runtime.experiments.register("layoutEditor", "Layout editor", true); |
| 114 Runtime.experiments.register("inspectTooltip", "Dark inspect element too
ltip"); | 114 Runtime.experiments.register("inspectTooltip", "Dark inspect element too
ltip"); |
| 115 Runtime.experiments.register("multipleTimelineViews", "Multiple main vie
ws on Timeline", true); | 115 Runtime.experiments.register("multipleTimelineViews", "Multiple main vie
ws on Timeline", true); |
| 116 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView",
"Network request headers filter in details view", true); | 116 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView",
"Network request headers filter in details view", true); |
| 117 Runtime.experiments.register("networkRequestsOnTimeline", "Network reque
sts on Timeline", true); | 117 Runtime.experiments.register("networkRequestsOnTimeline", "Network reque
sts on Timeline", true); |
| 118 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); | 118 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); |
| 119 Runtime.experiments.register("promiseTracker", "Promise inspector"); | |
| 120 Runtime.experiments.register("reducedIndentation", "Reduced indentation
in Elements DOM tree"); | 119 Runtime.experiments.register("reducedIndentation", "Reduced indentation
in Elements DOM tree"); |
| 121 Runtime.experiments.register("requestBlocking", "Request blocking", true
); | 120 Runtime.experiments.register("requestBlocking", "Request blocking", true
); |
| 122 Runtime.experiments.register("resolveVariableNames", "Resolve variable n
ames", true); | 121 Runtime.experiments.register("resolveVariableNames", "Resolve variable n
ames", true); |
| 123 Runtime.experiments.register("timelineShowAllEvents", "Show all events o
n Timeline", true); | 122 Runtime.experiments.register("timelineShowAllEvents", "Show all events o
n Timeline", true); |
| 124 Runtime.experiments.register("timelineLatencyInfo", "Show input latency
events on the Timeline", true); | 123 Runtime.experiments.register("timelineLatencyInfo", "Show input latency
events on the Timeline", true); |
| 125 Runtime.experiments.register("securityPanel", "Security panel"); | 124 Runtime.experiments.register("securityPanel", "Security panel"); |
| 126 Runtime.experiments.register("stepIntoAsync", "Step into async"); | 125 Runtime.experiments.register("stepIntoAsync", "Step into async"); |
| 127 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); | 126 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); |
| 128 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); | 127 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); |
| 129 Runtime.experiments.register("timelineRecordingPerspectives", "Timeline
recording perspectives UI"); | 128 Runtime.experiments.register("timelineRecordingPerspectives", "Timeline
recording perspectives UI"); |
| 130 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); | 129 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); |
| 131 | 130 |
| 132 Runtime.experiments.cleanUpStaleExperiments(); | 131 Runtime.experiments.cleanUpStaleExperiments(); |
| 133 | 132 |
| 134 if (InspectorFrontendHost.isUnderTest()) { | 133 if (InspectorFrontendHost.isUnderTest()) { |
| 135 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 134 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
| 136 // Enable experiments for testing. | 135 // Enable experiments for testing. |
| 137 if (testPath.indexOf("debugger/promise") !== -1) | |
| 138 Runtime.experiments.enableForTest("promiseTracker"); | |
| 139 if (testPath.indexOf("layers/") !== -1) | 136 if (testPath.indexOf("layers/") !== -1) |
| 140 Runtime.experiments.enableForTest("layersPanel"); | 137 Runtime.experiments.enableForTest("layersPanel"); |
| 141 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 138 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
| 142 Runtime.experiments.enableForTest("layersPanel"); | 139 Runtime.experiments.enableForTest("layersPanel"); |
| 143 if (testPath.indexOf("security/") !== -1) | 140 if (testPath.indexOf("security/") !== -1) |
| 144 Runtime.experiments.enableForTest("securityPanel"); | 141 Runtime.experiments.enableForTest("securityPanel"); |
| 145 } | 142 } |
| 146 | 143 |
| 147 Runtime.experiments.setDefaultExperiments([ | 144 Runtime.experiments.setDefaultExperiments([ |
| 148 "inspectTooltip", | 145 "inspectTooltip", |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 * @return {?Element} | 1135 * @return {?Element} |
| 1139 */ | 1136 */ |
| 1140 settingElement: function() | 1137 settingElement: function() |
| 1141 { | 1138 { |
| 1142 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1139 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1143 } | 1140 } |
| 1144 } | 1141 } |
| 1145 | 1142 |
| 1146 | 1143 |
| 1147 new WebInspector.Main(); | 1144 new WebInspector.Main(); |
| OLD | NEW |