| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 { | 182 { |
| 183 console.timeStamp("Main._createModuleManager"); | 183 console.timeStamp("Main._createModuleManager"); |
| 184 self.runtime = new Runtime(allDescriptors); | 184 self.runtime = new Runtime(allDescriptors); |
| 185 | 185 |
| 186 // FIXME: define html-per-app, make configuration a part of the app. | 186 // FIXME: define html-per-app, make configuration a part of the app. |
| 187 var configuration = ["main", "elements", "network", "sources", "timeline
", "profiler", "resources", "audits", "console", "source_frame", "extensions", "
settings"]; | 187 var configuration = ["main", "elements", "network", "sources", "timeline
", "profiler", "resources", "audits", "console", "source_frame", "extensions", "
settings"]; |
| 188 if (WebInspector.experimentsSettings.layersPanel.isEnabled()) | 188 if (WebInspector.experimentsSettings.layersPanel.isEnabled()) |
| 189 configuration.push("layers"); | 189 configuration.push("layers"); |
| 190 if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebIn
spector.queryParam("can_dock")) | 190 if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebIn
spector.queryParam("can_dock")) |
| 191 configuration.push("devices"); | 191 configuration.push("devices"); |
| 192 if (WebInspector.experimentsSettings.documentation.isEnabled()) |
| 193 configuration.push("documentation"); |
| 192 if (WebInspector.isWorkerFrontend()) | 194 if (WebInspector.isWorkerFrontend()) |
| 193 configuration = ["main", "sources", "timeline", "profiler", "console
", "source_frame"]; | 195 configuration = ["main", "sources", "timeline", "profiler", "console
", "source_frame"]; |
| 194 self.runtime.registerModules(configuration); | 196 self.runtime.registerModules(configuration); |
| 195 }, | 197 }, |
| 196 | 198 |
| 197 _createAppUI: function() | 199 _createAppUI: function() |
| 198 { | 200 { |
| 199 console.timeStamp("Main._createApp"); | 201 console.timeStamp("Main._createApp"); |
| 200 | 202 |
| 201 WebInspector.installPortStyles(); | 203 WebInspector.installPortStyles(); |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 | 903 |
| 902 WebInspector.Main.InspectedNodeRevealer.prototype = { | 904 WebInspector.Main.InspectedNodeRevealer.prototype = { |
| 903 /** | 905 /** |
| 904 * @param {!WebInspector.Event} event | 906 * @param {!WebInspector.Event} event |
| 905 */ | 907 */ |
| 906 _inspectNode: function(event) | 908 _inspectNode: function(event) |
| 907 { | 909 { |
| 908 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 910 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
| 909 } | 911 } |
| 910 } | 912 } |
| OLD | NEW |