| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 _debuggerPaused: function() | 184 _debuggerPaused: function() |
| 185 { | 185 { |
| 186 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.DebuggerPaused, this._debuggerPaused, this); | 186 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.DebuggerPaused, this._debuggerPaused, this); |
| 187 WebInspector.inspectorView.showPanel("sources"); | 187 WebInspector.inspectorView.showPanel("sources"); |
| 188 }, | 188 }, |
| 189 | 189 |
| 190 _loaded: function() | 190 _loaded: function() |
| 191 { | 191 { |
| 192 console.timeStamp("Main._loaded"); | 192 console.timeStamp("Main._loaded"); |
| 193 WebInspector.moduleManager = new WebInspector.ModuleManager(allDescripto
rs); |
| 193 if (WebInspector.queryParam("toolbox")) { | 194 if (WebInspector.queryParam("toolbox")) { |
| 194 new WebInspector.Toolbox(); | 195 new WebInspector.Toolbox(); |
| 195 return; | 196 return; |
| 196 } | 197 } |
| 197 | 198 |
| 198 WebInspector.settings = new WebInspector.Settings(); | 199 WebInspector.settings = new WebInspector.Settings(); |
| 199 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(
WebInspector.queryParam("experiments") !== null); | 200 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(
WebInspector.queryParam("experiments") !== null); |
| 200 // This setting is needed for backwards compatibility with Devtools Code
School extension. DO NOT REMOVE | 201 // This setting is needed for backwards compatibility with Devtools Code
School extension. DO NOT REMOVE |
| 201 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau
seOnExceptionStateSetting(); | 202 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau
seOnExceptionStateSetting(); |
| 202 | 203 |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope
nLinkHandler", autoselectPanel); | 353 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope
nLinkHandler", autoselectPanel); |
| 353 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist
ry(openAnchorLocationSetting); | 354 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist
ry(openAnchorLocationSetting); |
| 354 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel,
function() { return false; }); | 355 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel,
function() { return false; }); |
| 355 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L
inkHandler()); | 356 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L
inkHandler()); |
| 356 | 357 |
| 357 new WebInspector.WorkspaceController(WebInspector.workspace); | 358 new WebInspector.WorkspaceController(WebInspector.workspace); |
| 358 | 359 |
| 359 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); | 360 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); |
| 360 | 361 |
| 361 // Create settings before loading modules. | 362 // Create settings before loading modules. |
| 362 WebInspector.settings.initializeBackendSettings(); | 363 new WebInspector.RenderingOptions(); |
| 363 | 364 |
| 364 this._registerModules(); | 365 this._registerModules(); |
| 365 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); | 366 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); |
| 366 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); | 367 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); |
| 367 this._registerForwardedShortcuts(); | 368 this._registerForwardedShortcuts(); |
| 368 this._registerMessageSinkListener(); | 369 this._registerMessageSinkListener(); |
| 369 WebInspector.ShortcutsScreen.registerShortcuts(); | 370 WebInspector.ShortcutsScreen.registerShortcuts(); |
| 370 | 371 |
| 371 WebInspector.zoomManager = new WebInspector.ZoomManager(); | 372 WebInspector.zoomManager = new WebInspector.ZoomManager(); |
| 372 WebInspector.inspectorView = new WebInspector.InspectorView(); | 373 WebInspector.inspectorView = new WebInspector.InspectorView(); |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 }); | 832 }); |
| 832 | 833 |
| 833 /** | 834 /** |
| 834 * @param {string} name | 835 * @param {string} name |
| 835 * @return {?WebInspector.Panel} | 836 * @return {?WebInspector.Panel} |
| 836 */ | 837 */ |
| 837 WebInspector.panel = function(name) | 838 WebInspector.panel = function(name) |
| 838 { | 839 { |
| 839 return WebInspector.inspectorView.panel(name); | 840 return WebInspector.inspectorView.panel(name); |
| 840 } | 841 } |
| OLD | NEW |