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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 if (InspectorFrontendHost.isUnderTest()) { | 163 if (InspectorFrontendHost.isUnderTest()) { |
164 // Enable experiments for testing. | 164 // Enable experiments for testing. |
165 var testPath = WebInspector.settings.testPath.get(); | 165 var testPath = WebInspector.settings.testPath.get(); |
166 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) | 166 if (testPath.indexOf("timeline/") !== -1 || testPath.indexOf("layers
/") !== -1) |
167 Runtime.experiments.enableForTest("layersPanel"); | 167 Runtime.experiments.enableForTest("layersPanel"); |
168 if (testPath.indexOf("tracing/") !== -1) | 168 if (testPath.indexOf("tracing/") !== -1) |
169 Runtime.experiments.enableForTest("timelineOnTraceEvents"); | 169 Runtime.experiments.enableForTest("timelineOnTraceEvents"); |
170 if (testPath.indexOf("documentation/") !== -1) | 170 if (testPath.indexOf("documentation/") !== -1) |
171 Runtime.experiments.enableForTest("documentation"); | 171 Runtime.experiments.enableForTest("documentation"); |
172 } else { | 172 } else { |
173 Runtime.experiments.setDefaultExperiments(["timelineOnTraceEvents"])
; | 173 Runtime.experiments.setDefaultExperiments(["timelineOnTraceEvents",
"timelineJSCPUProfile"]); |
174 } | 174 } |
175 }, | 175 }, |
176 | 176 |
177 _createAppUI: function() | 177 _createAppUI: function() |
178 { | 178 { |
179 console.timeStamp("Main._createApp"); | 179 console.timeStamp("Main._createApp"); |
180 | 180 |
181 WebInspector.installPortStyles(); | 181 WebInspector.installPortStyles(); |
182 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor"
)) | 182 if (Runtime.queryParam("toolbarColor") && Runtime.queryParam("textColor"
)) |
183 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru
ntime.queryParam("textColor")); | 183 WebInspector.setToolbarColors(Runtime.queryParam("toolbarColor"), Ru
ntime.queryParam("textColor")); |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 /** | 867 /** |
868 * @param {!WebInspector.Event} event | 868 * @param {!WebInspector.Event} event |
869 */ | 869 */ |
870 _inspectNode: function(event) | 870 _inspectNode: function(event) |
871 { | 871 { |
872 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 872 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
873 } | 873 } |
874 } | 874 } |
875 | 875 |
876 new WebInspector.Main(); | 876 new WebInspector.Main(); |
OLD | NEW |