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

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

Issue 573453004: DevTools: Get rid of frontend_modules.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 3 months 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/front_end/host/module.json ('k') | Source/devtools/front_end/main/module.json » ('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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings( WebInspector.queryParam("experiments") !== null); 180 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings( WebInspector.queryParam("experiments") !== null);
181 // This setting is needed for backwards compatibility with Devtools Code School extension. DO NOT REMOVE 181 // This setting is needed for backwards compatibility with Devtools Code School extension. DO NOT REMOVE
182 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau seOnExceptionStateSetting(); 182 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau seOnExceptionStateSetting();
183 new WebInspector.VersionController().updateVersion(); 183 new WebInspector.VersionController().updateVersion();
184 }, 184 },
185 185
186 _createModuleManager: function() 186 _createModuleManager: function()
187 { 187 {
188 console.timeStamp("Main._createModuleManager"); 188 console.timeStamp("Main._createModuleManager");
189 self.runtime = new Runtime(); 189 self.runtime = new Runtime();
190 var core = ["common", "host", "sdk", "ui", "components", "workspace", "b indings", "screencast", "toolbox", "main"];
190 191
191 // FIXME: define html-per-app, make configuration a part of the app. 192 // FIXME: define html-per-app, make configuration a part of the app.
192 var configuration = ["main", "elements", "network", "sources", "timeline ", "profiler", "resources", "audits", "console", "source_frame", "extensions", " settings"]; 193 var configuration = core.concat(["elements", "network", "sources", "time line", "profiler", "resources", "audits", "console", "source_frame", "extensions ", "settings"]);
193 if (WebInspector.experimentsSettings.layersPanel.isEnabled()) 194 if (WebInspector.experimentsSettings.layersPanel.isEnabled())
194 configuration.push("layers"); 195 configuration.push("layers");
195 if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebIn spector.queryParam("can_dock")) 196 if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebIn spector.queryParam("can_dock"))
196 configuration.push("devices"); 197 configuration.push("devices");
197 if (WebInspector.experimentsSettings.documentation.isEnabled()) 198 if (WebInspector.experimentsSettings.documentation.isEnabled())
198 configuration.push("documentation"); 199 configuration.push("documentation");
199 if (WebInspector.isWorkerFrontend()) 200 if (WebInspector.isWorkerFrontend())
200 configuration = ["main", "network", "sources", "timeline", "profiler ", "resources", "console", "source_frame", "extensions", "settings"]; 201 configuration = core.concat(["network", "sources", "timeline", "prof iler", "resources", "console", "source_frame", "extensions", "settings"]);
201 self.runtime.registerModules(configuration); 202 self.runtime.registerModules(configuration, core);
202 }, 203 },
203 204
204 _createAppUI: function() 205 _createAppUI: function()
205 { 206 {
206 console.timeStamp("Main._createApp"); 207 console.timeStamp("Main._createApp");
207 208
208 WebInspector.installPortStyles(); 209 WebInspector.installPortStyles();
209 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam(" textColor")) 210 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam(" textColor"))
210 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor" ), WebInspector.queryParam("textColor")); 211 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor" ), WebInspector.queryParam("textColor"));
211 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.SetToolbarColors, updateToolbarColors); 212 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.SetToolbarColors, updateToolbarColors);
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 911
911 WebInspector.Main.InspectedNodeRevealer.prototype = { 912 WebInspector.Main.InspectedNodeRevealer.prototype = {
912 /** 913 /**
913 * @param {!WebInspector.Event} event 914 * @param {!WebInspector.Event} event
914 */ 915 */
915 _inspectNode: function(event) 916 _inspectNode: function(event)
916 { 917 {
917 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 918 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
918 } 919 }
919 } 920 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/host/module.json ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698