Chromium Code Reviews| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 124 Runtime.experiments.register("accessibilityInspection", "Accessibility I nspection"); | 124 Runtime.experiments.register("accessibilityInspection", "Accessibility I nspection"); |
| 125 Runtime.experiments.register("animationInspection", "Animation Inspectio n"); | 125 Runtime.experiments.register("animationInspection", "Animation Inspectio n"); |
| 126 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t hemes"); | 126 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t hemes"); |
| 127 Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox Jav aScript frames on Timeline"); | 127 Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox Jav aScript frames on Timeline"); |
| 128 Runtime.experiments.register("timelineDetailsChart", "Costly functions v iew in Timeline details", true); | 128 Runtime.experiments.register("timelineDetailsChart", "Costly functions v iew in Timeline details", true); |
| 129 Runtime.experiments.register("customObjectFormatters", "Custom object fo rmatters", true); | 129 Runtime.experiments.register("customObjectFormatters", "Custom object fo rmatters", true); |
| 130 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source map auto-stepping"); | 130 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source map auto-stepping"); |
| 131 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion"); | 131 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion"); |
| 132 Runtime.experiments.register("filmStripInNetworkAndTimeline", "Filmstrip in Network and Timeline Panel", true); | 132 Runtime.experiments.register("filmStripInNetworkAndTimeline", "Filmstrip in Network and Timeline Panel", true); |
| 133 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true ); | 133 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true ); |
| 134 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve nts on Timeline overview", true) | 134 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve nts on Timeline overview", true); |
| 135 Runtime.experiments.register("layersPanel", "Layers panel"); | 135 Runtime.experiments.register("layersPanel", "Layers panel"); |
| 136 Runtime.experiments.register("materialDesign", "Material design"); | 136 Runtime.experiments.register("materialDesign", "Material design"); |
| 137 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView", "Network request headers filter in details view", true); | 137 Runtime.experiments.register("networkRequestHeadersFilterInDetailsView", "Network request headers filter in details view", true); |
| 138 Runtime.experiments.register("networkRequestsOnTimeline", "Network reque sts on Timeline"); | 138 Runtime.experiments.register("networkRequestsOnTimeline", "Network reque sts on Timeline"); |
| 139 Runtime.experiments.register("privateScriptInspection", "Private script inspection"); | 139 Runtime.experiments.register("privateScriptInspection", "Private script inspection"); |
| 140 Runtime.experiments.register("promiseTracker", "Promise inspector"); | 140 Runtime.experiments.register("promiseTracker", "Promise inspector"); |
| 141 Runtime.experiments.register("securityPanel", "Security panel", true); | 141 Runtime.experiments.register("securityPanel", "Security panel", true); |
| 142 Runtime.experiments.register("serviceWorkersInPageFrontend", "Service wo rkers in DevTools for page"); | 142 Runtime.experiments.register("serviceWorkersInPageFrontend", "Service wo rkers in DevTools for page"); |
| 143 Runtime.experiments.register("serviceWorkersInResources", "Service worke rs in Resources panel", true); | 143 Runtime.experiments.register("serviceWorkersInResources", "Service worke rs in Resources panel", true); |
| 144 Runtime.experiments.register("showPrimaryLoadWaterfallInNetworkTimeline" , "Show primary load waterfall in Network timeline", true); | 144 Runtime.experiments.register("showPrimaryLoadWaterfallInNetworkTimeline" , "Show primary load waterfall in Network timeline", true); |
| 145 Runtime.experiments.register("stepIntoAsync", "Step into async"); | 145 Runtime.experiments.register("stepIntoAsync", "Step into async"); |
| 146 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i nvalidation tracking", true); | 146 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i nvalidation tracking", true); |
| 147 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci ng based JS profiler", true); | 147 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci ng based JS profiler", true); |
| 148 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events ", true); | 148 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events ", true); |
| 149 Runtime.experiments.register("inlineVariableValues", "Display variable v alues inline while debugging"); | 149 Runtime.experiments.register("inlineVariableValues", "Display variable v alues inline while debugging"); |
| 150 Runtime.experiments.register("wysiwygLayoutEditor", "WYSIWYG layout edit or", true); | |
|
dgozman
2015/06/23 16:45:06
layoutEditor
| |
| 150 | 151 |
| 151 Runtime.experiments.cleanUpStaleExperiments(); | 152 Runtime.experiments.cleanUpStaleExperiments(); |
| 152 | 153 |
| 153 if (InspectorFrontendHost.isUnderTest()) { | 154 if (InspectorFrontendHost.isUnderTest()) { |
| 154 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 155 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
| 155 // Enable experiments for testing. | 156 // Enable experiments for testing. |
| 156 if (testPath.indexOf("debugger/promise") !== -1) | 157 if (testPath.indexOf("debugger/promise") !== -1) |
| 157 Runtime.experiments.enableForTest("promiseTracker"); | 158 Runtime.experiments.enableForTest("promiseTracker"); |
| 158 if (testPath.indexOf("elements/") !== -1) | 159 if (testPath.indexOf("elements/") !== -1) |
| 159 Runtime.experiments.enableForTest("animationInspection"); | 160 Runtime.experiments.enableForTest("animationInspection"); |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 837 p.classList.add("help-section"); | 838 p.classList.add("help-section"); |
| 838 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); | 839 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once it restarts we will attach to it automatically."); |
| 839 } | 840 } |
| 840 | 841 |
| 841 WebInspector.WorkerTerminatedScreen.prototype = { | 842 WebInspector.WorkerTerminatedScreen.prototype = { |
| 842 | 843 |
| 843 __proto__: WebInspector.HelpScreen.prototype | 844 __proto__: WebInspector.HelpScreen.prototype |
| 844 } | 845 } |
| 845 | 846 |
| 846 new WebInspector.Main(); | 847 new WebInspector.Main(); |
| OLD | NEW |