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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 new WebInspector.VersionController().updateVersion(); | 129 new WebInspector.VersionController().updateVersion(); |
130 }, | 130 }, |
131 | 131 |
132 _initializeExperiments: function() | 132 _initializeExperiments: function() |
133 { | 133 { |
134 Runtime.experiments.register("accessibilityInspection", "Accessibility I
nspection", true); | 134 Runtime.experiments.register("accessibilityInspection", "Accessibility I
nspection", true); |
135 Runtime.experiments.register("animationInspection", "Animation Inspectio
n", true); | 135 Runtime.experiments.register("animationInspection", "Animation Inspectio
n", true); |
136 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t
hemes"); | 136 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t
hemes"); |
137 Runtime.experiments.register("canvasInspection", "Canvas inspection"); | 137 Runtime.experiments.register("canvasInspection", "Canvas inspection"); |
138 Runtime.experiments.register("composedShadowDOM", "Composed Shadow DOM v
iew.", true); | 138 Runtime.experiments.register("composedShadowDOM", "Composed Shadow DOM v
iew.", true); |
| 139 Runtime.experiments.register("timelineDetailsChart", "Costly functions v
iew in Timeline details", true); |
139 Runtime.experiments.register("customObjectFormatters", "Custom object fo
rmatters", true); | 140 Runtime.experiments.register("customObjectFormatters", "Custom object fo
rmatters", true); |
140 Runtime.experiments.register("devicesPanel", "Devices panel"); | 141 Runtime.experiments.register("devicesPanel", "Devices panel"); |
141 Runtime.experiments.register("externalDeviceList", "External device list
", true); | 142 Runtime.experiments.register("externalDeviceList", "External device list
", true); |
142 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect
ion"); | 143 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect
ion"); |
143 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true
); | 144 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true
); |
144 Runtime.experiments.register("layersPanel", "Layers panel"); | 145 Runtime.experiments.register("layersPanel", "Layers panel"); |
145 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView",
"Network request headers filter in details view", true); | 146 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView",
"Network request headers filter in details view", true); |
| 147 Runtime.experiments.register("networkRequestsOnTimeline", "Network reque
sts on Timeline"); |
146 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); | 148 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); |
147 Runtime.experiments.register("promiseTracker", "Promise inspector"); | 149 Runtime.experiments.register("promiseTracker", "Promise inspector"); |
148 Runtime.experiments.register("showPrimaryLoadWaterfallInNetworkTimeline"
, "Show primary load waterfall in Network timeline", true); | 150 Runtime.experiments.register("showPrimaryLoadWaterfallInNetworkTimeline"
, "Show primary load waterfall in Network timeline", true); |
149 Runtime.experiments.register("stepIntoAsync", "Step into async"); | 151 Runtime.experiments.register("stepIntoAsync", "Step into async"); |
150 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking"); | 152 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking"); |
151 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); | 153 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); |
152 Runtime.experiments.register("timelineDetailsChart", "Show costly functi
ons in Timeline details", true); | |
153 Runtime.experiments.cleanUpStaleExperiments(); | 154 Runtime.experiments.cleanUpStaleExperiments(); |
154 | 155 |
155 if (InspectorFrontendHost.isUnderTest()) { | 156 if (InspectorFrontendHost.isUnderTest()) { |
156 // Enable experiments for testing. | 157 // Enable experiments for testing. |
157 var testPath = WebInspector.settings.testPath.get(); | 158 var testPath = WebInspector.settings.testPath.get(); |
158 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 159 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
159 Runtime.experiments.enableForTest("layersPanel"); | 160 Runtime.experiments.enableForTest("layersPanel"); |
160 if (testPath.indexOf("elements/") !== -1) | 161 if (testPath.indexOf("elements/") !== -1) |
161 Runtime.experiments.enableForTest("animationInspection"); | 162 Runtime.experiments.enableForTest("animationInspection"); |
162 if (testPath.indexOf("debugger/promise") !== -1) | 163 if (testPath.indexOf("debugger/promise") !== -1) |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 p.classList.add("help-section"); | 947 p.classList.add("help-section"); |
947 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); | 948 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); |
948 } | 949 } |
949 | 950 |
950 WebInspector.WorkerTerminatedScreen.prototype = { | 951 WebInspector.WorkerTerminatedScreen.prototype = { |
951 | 952 |
952 __proto__: WebInspector.HelpScreen.prototype | 953 __proto__: WebInspector.HelpScreen.prototype |
953 } | 954 } |
954 | 955 |
955 new WebInspector.Main(); | 956 new WebInspector.Main(); |
OLD | NEW |