Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: Source/devtools/front_end/main/Main.js

Issue 709423002: DevTools: remove old Timeline front-end implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated LayoutTests/inspector/layers/layer-canvas-log.html Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t hemes"); 149 Runtime.experiments.register("applyCustomStylesheet", "Allow custom UI t hemes");
150 Runtime.experiments.register("canvasInspection", "Canvas inspection"); 150 Runtime.experiments.register("canvasInspection", "Canvas inspection");
151 Runtime.experiments.register("devicesPanel", "Devices panel"); 151 Runtime.experiments.register("devicesPanel", "Devices panel");
152 Runtime.experiments.register("disableAgentsWhenProfile", "Disable other agents and UI when profiler is active", true); 152 Runtime.experiments.register("disableAgentsWhenProfile", "Disable other agents and UI when profiler is active", true);
153 Runtime.experiments.register("dockToLeft", "Dock to left", true); 153 Runtime.experiments.register("dockToLeft", "Dock to left", true);
154 Runtime.experiments.register("documentation", "JavaScript documentation" , true); 154 Runtime.experiments.register("documentation", "JavaScript documentation" , true);
155 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion"); 155 Runtime.experiments.register("fileSystemInspection", "FileSystem inspect ion");
156 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true ); 156 Runtime.experiments.register("gpuTimeline", "GPU data on timeline", true );
157 Runtime.experiments.register("layersPanel", "Layers panel"); 157 Runtime.experiments.register("layersPanel", "Layers panel");
158 Runtime.experiments.register("promiseTracker", "Enable Promise inspectio n"); 158 Runtime.experiments.register("promiseTracker", "Enable Promise inspectio n");
159 Runtime.experiments.register("timelineOnTraceEvents", "Timeline on trace events");
160 Runtime.experiments.register("timelinePowerProfiler", "Timeline power pr ofiler"); 159 Runtime.experiments.register("timelinePowerProfiler", "Timeline power pr ofiler");
161 Runtime.experiments.register("timelineJSCPUProfile", "Timeline with JS s ampling"); 160 Runtime.experiments.register("timelineJSCPUProfile", "Timeline with JS s ampling");
162 Runtime.experiments.register("timelineInvalidationTracking", "Timeline w ith full invalidation tracking."); 161 Runtime.experiments.register("timelineInvalidationTracking", "Timeline w ith full invalidation tracking.");
163 Runtime.experiments.cleanUpStaleExperiments(); 162 Runtime.experiments.cleanUpStaleExperiments();
164 163
165 if (InspectorFrontendHost.isUnderTest()) { 164 if (InspectorFrontendHost.isUnderTest()) {
166 // Enable experiments for testing. 165 // Enable experiments for testing.
167 Runtime.experiments.enableForTest("disableAgentsWhenProfile"); 166 Runtime.experiments.enableForTest("disableAgentsWhenProfile");
168 var testPath = WebInspector.settings.testPath.get(); 167 var testPath = WebInspector.settings.testPath.get();
169 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1) 168 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers /") !== -1)
170 Runtime.experiments.enableForTest("layersPanel"); 169 Runtime.experiments.enableForTest("layersPanel");
171 if (testPath.indexOf("tracing/") !== -1)
172 Runtime.experiments.enableForTest("timelineOnTraceEvents");
173 if (testPath.indexOf("documentation/") !== -1) 170 if (testPath.indexOf("documentation/") !== -1)
174 Runtime.experiments.enableForTest("documentation"); 171 Runtime.experiments.enableForTest("documentation");
175 if (testPath.indexOf("elements/") !== -1) 172 if (testPath.indexOf("elements/") !== -1)
176 Runtime.experiments.enableForTest("animationInspection"); 173 Runtime.experiments.enableForTest("animationInspection");
177 } else { 174 } else {
178 Runtime.experiments.setDefaultExperiments([ 175 Runtime.experiments.setDefaultExperiments([
179 "timelineOnTraceEvents",
180 "disableAgentsWhenProfile", 176 "disableAgentsWhenProfile",
181 "timelineJSCPUProfile", 177 "timelineJSCPUProfile",
182 ]); 178 ]);
183 } 179 }
184 }, 180 },
185 181
186 /** 182 /**
187 * @suppressGlobalPropertiesCheck 183 * @suppressGlobalPropertiesCheck
188 */ 184 */
189 _createAppUI: function() 185 _createAppUI: function()
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
892 /** 888 /**
893 * @param {!WebInspector.Event} event 889 * @param {!WebInspector.Event} event
894 */ 890 */
895 _inspectNode: function(event) 891 _inspectNode: function(event)
896 { 892 {
897 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 893 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
898 } 894 }
899 } 895 }
900 896
901 new WebInspector.Main(); 897 new WebInspector.Main();
OLDNEW
« no previous file with comments | « Source/devtools/devtools.gypi ('k') | Source/devtools/front_end/sdk/Target.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698