| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 Runtime.experiments.register("resolveVariableNames", "Resolve variable n
ames"); | 99 Runtime.experiments.register("resolveVariableNames", "Resolve variable n
ames"); |
| 100 Runtime.experiments.register("timelineShowAllEvents", "Show all events o
n Timeline", true); | 100 Runtime.experiments.register("timelineShowAllEvents", "Show all events o
n Timeline", true); |
| 101 Runtime.experiments.register("timelineShowAllProcesses", "Show all proce
sses on Timeline", true); | 101 Runtime.experiments.register("timelineShowAllProcesses", "Show all proce
sses on Timeline", true); |
| 102 Runtime.experiments.register("securityPanel", "Security panel"); | 102 Runtime.experiments.register("securityPanel", "Security panel"); |
| 103 Runtime.experiments.register("sourceDiff", "Source diff"); | 103 Runtime.experiments.register("sourceDiff", "Source diff"); |
| 104 Runtime.experiments.register("terminalInDrawer", "Terminal in drawer", t
rue); | 104 Runtime.experiments.register("terminalInDrawer", "Terminal in drawer", t
rue); |
| 105 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); | 105 Runtime.experiments.register("timelineFlowEvents", "Timeline flow events
", true); |
| 106 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); | 106 Runtime.experiments.register("timelineInvalidationTracking", "Timeline i
nvalidation tracking", true); |
| 107 Runtime.experiments.register("timelineRecordingPerspectives", "Timeline
recording perspectives UI"); | 107 Runtime.experiments.register("timelineRecordingPerspectives", "Timeline
recording perspectives UI"); |
| 108 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); | 108 Runtime.experiments.register("timelineTracingJSProfile", "Timeline traci
ng based JS profiler", true); |
| 109 Runtime.experiments.register("timelineV8RuntimeCallStats", "V8 Runtime C
all Stats on Timeline", true); |
| 109 | 110 |
| 110 Runtime.experiments.cleanUpStaleExperiments(); | 111 Runtime.experiments.cleanUpStaleExperiments(); |
| 111 | 112 |
| 112 if (InspectorFrontendHost.isUnderTest()) { | 113 if (InspectorFrontendHost.isUnderTest()) { |
| 113 var testPath = JSON.parse(prefs["testPath"] || "\"\""); | 114 var testPath = JSON.parse(prefs["testPath"] || "\"\""); |
| 114 // Enable experiments for testing. | 115 // Enable experiments for testing. |
| 115 if (testPath.indexOf("layers/") !== -1) | 116 if (testPath.indexOf("layers/") !== -1) |
| 116 Runtime.experiments.enableForTest("layersPanel"); | 117 Runtime.experiments.enableForTest("layersPanel"); |
| 117 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 118 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
| 118 Runtime.experiments.enableForTest("layersPanel"); | 119 Runtime.experiments.enableForTest("layersPanel"); |
| (...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 * @override | 1084 * @override |
| 1084 * @return {?Element} | 1085 * @return {?Element} |
| 1085 */ | 1086 */ |
| 1086 settingElement: function() | 1087 settingElement: function() |
| 1087 { | 1088 { |
| 1088 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1089 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1089 } | 1090 } |
| 1090 }; | 1091 }; |
| 1091 | 1092 |
| 1092 new WebInspector.Main(); | 1093 new WebInspector.Main(); |
| OLD | NEW |