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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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()) | 192 if (WebInspector.experimentsSettings.documentation.isEnabled()) |
193 configuration.push("documentation"); | 193 configuration.push("documentation"); |
194 if (WebInspector.isWorkerFrontend()) | 194 if (WebInspector.isWorkerFrontend()) |
195 configuration = ["main", "sources", "timeline", "profiler", "console
", "source_frame"]; | 195 configuration = ["main", "sources", "timeline", "profiler", "console
", "source_frame", "extensions"]; |
196 self.runtime.registerModules(configuration); | 196 self.runtime.registerModules(configuration); |
197 }, | 197 }, |
198 | 198 |
199 _createAppUI: function() | 199 _createAppUI: function() |
200 { | 200 { |
201 console.timeStamp("Main._createApp"); | 201 console.timeStamp("Main._createApp"); |
202 | 202 |
203 WebInspector.installPortStyles(); | 203 WebInspector.installPortStyles(); |
204 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam("
textColor")) | 204 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam("
textColor")) |
205 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor"
), WebInspector.queryParam("textColor")); | 205 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor"
), WebInspector.queryParam("textColor")); |
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 | 900 |
901 WebInspector.Main.InspectedNodeRevealer.prototype = { | 901 WebInspector.Main.InspectedNodeRevealer.prototype = { |
902 /** | 902 /** |
903 * @param {!WebInspector.Event} event | 903 * @param {!WebInspector.Event} event |
904 */ | 904 */ |
905 _inspectNode: function(event) | 905 _inspectNode: function(event) |
906 { | 906 { |
907 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 907 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
908 } | 908 } |
909 } | 909 } |
OLD | NEW |