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

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

Issue 472903003: DevTools: Get rid of module initializers in the source tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing worker module.json's to gypi Created 6 years, 4 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 WebInspector.settings = new WebInspector.Settings(); 174 WebInspector.settings = new WebInspector.Settings();
175 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings( WebInspector.queryParam("experiments") !== null); 175 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings( WebInspector.queryParam("experiments") !== null);
176 // This setting is needed for backwards compatibility with Devtools Code School extension. DO NOT REMOVE 176 // This setting is needed for backwards compatibility with Devtools Code School extension. DO NOT REMOVE
177 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau seOnExceptionStateSetting(); 177 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau seOnExceptionStateSetting();
178 new WebInspector.VersionController().updateVersion(); 178 new WebInspector.VersionController().updateVersion();
179 }, 179 },
180 180
181 _createModuleManager: function() 181 _createModuleManager: function()
182 { 182 {
183 console.timeStamp("Main._createModuleManager"); 183 console.timeStamp("Main._createModuleManager");
184 self.runtime = new Runtime(allDescriptors); 184 self.runtime = new Runtime();
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())
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698