| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 */ | 79 */ |
| 80 _initializeExperiments: function(prefs) | 80 _initializeExperiments: function(prefs) |
| 81 { | 81 { |
| 82 Runtime.experiments.register("accessibilityInspection", "Accessibility I
nspection"); | 82 Runtime.experiments.register("accessibilityInspection", "Accessibility I
nspection"); |
| 83 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t
hemes"); | 83 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t
hemes"); |
| 84 Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox Jav
aScript frames on Timeline", true); | 84 Runtime.experiments.register("blackboxJSFramesOnTimeline", "Blackbox Jav
aScript frames on Timeline", true); |
| 85 Runtime.experiments.register("colorContrastRatio", "Contrast ratio line
in color picker", true); | 85 Runtime.experiments.register("colorContrastRatio", "Contrast ratio line
in color picker", true); |
| 86 Runtime.experiments.register("continueToFirstInvocation", "Continue to f
irst invocation", true); | 86 Runtime.experiments.register("continueToFirstInvocation", "Continue to f
irst invocation", true); |
| 87 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source
map auto-stepping"); | 87 Runtime.experiments.register("emptySourceMapAutoStepping", "Empty source
map auto-stepping"); |
| 88 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve
nts on Timeline overview", true); | 88 Runtime.experiments.register("inputEventsOnTimelineOverview", "Input eve
nts on Timeline overview", true); |
| 89 Runtime.experiments.register("layersPanel", "Layers panel"); | |
| 90 Runtime.experiments.register("layoutEditor", "Layout editor", true); | 89 Runtime.experiments.register("layoutEditor", "Layout editor", true); |
| 91 Runtime.experiments.register("inspectTooltip", "Dark inspect element too
ltip"); | 90 Runtime.experiments.register("inspectTooltip", "Dark inspect element too
ltip"); |
| 92 Runtime.experiments.register("liveSASS", "Live SASS"); | 91 Runtime.experiments.register("liveSASS", "Live SASS"); |
| 93 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); | 92 Runtime.experiments.register("privateScriptInspection", "Private script
inspection"); |
| 94 Runtime.experiments.register("requestBlocking", "Request blocking", true
); | 93 Runtime.experiments.register("requestBlocking", "Request blocking", true
); |
| 95 Runtime.experiments.register("resolveVariableNames", "Resolve variable n
ames"); | 94 Runtime.experiments.register("resolveVariableNames", "Resolve variable n
ames"); |
| 96 Runtime.experiments.register("timelineShowAllEvents", "Show all events o
n Timeline", true); | 95 Runtime.experiments.register("timelineShowAllEvents", "Show all events o
n Timeline", true); |
| 97 Runtime.experiments.register("timelineShowAllProcesses", "Show all proce
sses on Timeline", true); | 96 Runtime.experiments.register("timelineShowAllProcesses", "Show all proce
sses on Timeline", true); |
| 98 Runtime.experiments.register("securityPanel", "Security panel"); | 97 Runtime.experiments.register("securityPanel", "Security panel"); |
| 99 Runtime.experiments.register("shadowEditor", "Shadow editor", true); | 98 Runtime.experiments.register("shadowEditor", "Shadow editor", true); |
| 100 Runtime.experiments.register("sourceDiff", "Source diff"); | 99 Runtime.experiments.register("sourceDiff", "Source diff"); |
| 101 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); | 100 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); |
| 102 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); | 101 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); |
| 103 Runtime.experiments.register("timelineRecordingPerspectives", "Timeline
recording perspectives UI"); | 102 Runtime.experiments.register("timelineRecordingPerspectives", "Timeline
recording perspectives UI"); |
| 104 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); | 103 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); |
| 105 | 104 |
| 106 Runtime.experiments.cleanUpStaleExperiments(); | 105 Runtime.experiments.cleanUpStaleExperiments(); |
| 107 | 106 |
| 108 if (InspectorFrontendHost.isUnderTest()) { | 107 if (InspectorFrontendHost.isUnderTest()) { |
| 109 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 108 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
| 110 // Enable experiments for testing. | 109 // Enable experiments for testing. |
| 111 if (testPath.indexOf("layers/") !== -1) | |
| 112 Runtime.experiments.enableForTest("layersPanel"); | |
| 113 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | |
| 114 Runtime.experiments.enableForTest("layersPanel"); | |
| 115 if (testPath.indexOf("security/") !== -1) | 110 if (testPath.indexOf("security/") !== -1) |
| 116 Runtime.experiments.enableForTest("securityPanel"); | 111 Runtime.experiments.enableForTest("securityPanel"); |
| 117 if (testPath.indexOf("accessibility/") !== -1) | 112 if (testPath.indexOf("accessibility/") !== -1) |
| 118 Runtime.experiments.enableForTest("accessibilityInspection"); | 113 Runtime.experiments.enableForTest("accessibilityInspection"); |
| 119 } | 114 } |
| 120 | 115 |
| 121 Runtime.experiments.setDefaultExperiments([ | 116 Runtime.experiments.setDefaultExperiments([ |
| 122 "inspectTooltip", | 117 "inspectTooltip", |
| 123 "securityPanel", | 118 "securityPanel", |
| 124 "resolveVariableNames" | 119 "resolveVariableNames" |
| (...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 * @override | 1089 * @override |
| 1095 * @return {?Element} | 1090 * @return {?Element} |
| 1096 */ | 1091 */ |
| 1097 settingElement: function() | 1092 settingElement: function() |
| 1098 { | 1093 { |
| 1099 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1094 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1100 } | 1095 } |
| 1101 } | 1096 } |
| 1102 | 1097 |
| 1103 new WebInspector.Main(); | 1098 new WebInspector.Main(); |
| OLD | NEW |