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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); | 141 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); |
142 Runtime.experiments.register("promiseTracker", "Promise inspector"); | 142 Runtime.experiments.register("promiseTracker", "Promise inspector"); |
143 Runtime.experiments.register("securityPanel", "Security panel", true); | 143 Runtime.experiments.register("securityPanel", "Security panel", true); |
144 Runtime.experiments.register("serviceWorkersInPageFrontend", "Service wo
rkers in DevTools for page"); | 144 Runtime.experiments.register("serviceWorkersInPageFrontend", "Service wo
rkers in DevTools for page"); |
145 Runtime.experiments.register("serviceWorkersInResources", "Service worke
rs in Resources panel", true); | 145 Runtime.experiments.register("serviceWorkersInResources", "Service worke
rs in Resources panel", true); |
146 Runtime.experiments.register("showPrimaryLoadWaterfallInNetworkTimeline"
, "Show primary load waterfall in Network timeline", true); | 146 Runtime.experiments.register("showPrimaryLoadWaterfallInNetworkTimeline"
, "Show primary load waterfall in Network timeline", true); |
147 Runtime.experiments.register("stepIntoAsync", "Step into async"); | 147 Runtime.experiments.register("stepIntoAsync", "Step into async"); |
148 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); | 148 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); |
149 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); | 149 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); |
150 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); | 150 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); |
151 Runtime.experiments.register("tooltips", "Tooltips", true); | 151 Runtime.experiments.register("tooltips", "Tooltips"); |
152 Runtime.experiments.register("inlineVariableValues", "Display variable v
alues inline while debugging"); | 152 Runtime.experiments.register("inlineVariableValues", "Display variable v
alues inline while debugging"); |
153 | 153 |
154 Runtime.experiments.cleanUpStaleExperiments(); | 154 Runtime.experiments.cleanUpStaleExperiments(); |
155 | 155 |
156 if (InspectorFrontendHost.isUnderTest()) { | 156 if (InspectorFrontendHost.isUnderTest()) { |
157 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 157 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
158 // Enable experiments for testing. | 158 // Enable experiments for testing. |
159 if (testPath.indexOf("debugger/promise") !== -1) | 159 if (testPath.indexOf("debugger/promise") !== -1) |
160 Runtime.experiments.enableForTest("promiseTracker"); | 160 Runtime.experiments.enableForTest("promiseTracker"); |
161 if (testPath.indexOf("elements/") !== -1) | 161 if (testPath.indexOf("elements/") !== -1) |
162 Runtime.experiments.enableForTest("animationInspection"); | 162 Runtime.experiments.enableForTest("animationInspection"); |
163 if (testPath.indexOf("layers/") !== -1) | 163 if (testPath.indexOf("layers/") !== -1) |
164 Runtime.experiments.enableForTest("layersPanel"); | 164 Runtime.experiments.enableForTest("layersPanel"); |
165 if (testPath.indexOf("service-workers/") !== -1) | 165 if (testPath.indexOf("service-workers/") !== -1) |
166 Runtime.experiments.enableForTest("serviceWorkersInResources"); | 166 Runtime.experiments.enableForTest("serviceWorkersInResources"); |
167 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 167 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
168 Runtime.experiments.enableForTest("layersPanel"); | 168 Runtime.experiments.enableForTest("layersPanel"); |
169 } | 169 } |
170 | 170 |
171 Runtime.experiments.setDefaultExperiments([ | 171 Runtime.experiments.setDefaultExperiments([ |
172 "inlineVariableValues", | 172 "inlineVariableValues", |
173 "serviceWorkersInPageFrontend" | 173 "serviceWorkersInPageFrontend", |
| 174 "tooltips" |
174 ]); | 175 ]); |
175 }, | 176 }, |
176 | 177 |
177 /** | 178 /** |
178 * @suppressGlobalPropertiesCheck | 179 * @suppressGlobalPropertiesCheck |
179 */ | 180 */ |
180 _createAppUI: function() | 181 _createAppUI: function() |
181 { | 182 { |
182 console.timeStamp("Main._createApp"); | 183 console.timeStamp("Main._createApp"); |
183 | 184 |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 p.classList.add("help-section"); | 942 p.classList.add("help-section"); |
942 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); | 943 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); |
943 } | 944 } |
944 | 945 |
945 WebInspector.WorkerTerminatedScreen.prototype = { | 946 WebInspector.WorkerTerminatedScreen.prototype = { |
946 | 947 |
947 __proto__: WebInspector.HelpScreen.prototype | 948 __proto__: WebInspector.HelpScreen.prototype |
948 } | 949 } |
949 | 950 |
950 new WebInspector.Main(); | 951 new WebInspector.Main(); |
OLD | NEW |