| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace
); | 275 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace
); |
| 276 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor
kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); | 276 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor
kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); |
| 277 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI
nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage
r); | 277 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI
nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage
r); |
| 278 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We
bInspector.workspace); | 278 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We
bInspector.workspace); |
| 279 this._executionContextSelector = new WebInspector.ExecutionContextSelect
or(); | 279 this._executionContextSelector = new WebInspector.ExecutionContextSelect
or(); |
| 280 }, | 280 }, |
| 281 | 281 |
| 282 _doLoadedDoneWithCapabilities: function(mainTarget) | 282 _doLoadedDoneWithCapabilities: function(mainTarget) |
| 283 { | 283 { |
| 284 WebInspector.dockController = new WebInspector.DockController(!!WebInspe
ctor.queryParam("can_dock")); | 284 WebInspector.dockController = new WebInspector.DockController(!!WebInspe
ctor.queryParam("can_dock")); |
| 285 WebInspector.overridesSupport = new WebInspector.OverridesSupport(WebIns
pector.experimentsSettings.responsiveDesign.isEnabled() && WebInspector.dockCont
roller.canDock()); |
| 285 | 286 |
| 286 if (mainTarget.canScreencast) | 287 if (mainTarget.canScreencast) |
| 287 WebInspector.app = new WebInspector.ScreencastApp(); | 288 WebInspector.app = new WebInspector.ScreencastApp(); |
| 288 else if (WebInspector.dockController.canDock()) | 289 else if (WebInspector.dockController.canDock()) |
| 289 WebInspector.app = new WebInspector.AdvancedApp(); | 290 WebInspector.app = new WebInspector.AdvancedApp(); |
| 290 else | 291 else |
| 291 WebInspector.app = new WebInspector.SimpleApp(); | 292 WebInspector.app = new WebInspector.SimpleApp(); |
| 292 | 293 |
| 293 WebInspector.dockController.initialize(); | 294 WebInspector.dockController.initialize(); |
| 294 | 295 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints
SidebarPane(); | 341 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints
SidebarPane(); |
| 341 | 342 |
| 342 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall
y"); | 343 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall
y"); |
| 343 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope
nLinkHandler", autoselectPanel); | 344 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope
nLinkHandler", autoselectPanel); |
| 344 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist
ry(openAnchorLocationSetting); | 345 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist
ry(openAnchorLocationSetting); |
| 345 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel,
function() { return false; }); | 346 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel,
function() { return false; }); |
| 346 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L
inkHandler()); | 347 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L
inkHandler()); |
| 347 | 348 |
| 348 new WebInspector.WorkspaceController(WebInspector.workspace); | 349 new WebInspector.WorkspaceController(WebInspector.workspace); |
| 349 | 350 |
| 350 WebInspector.overridesSupport = new WebInspector.OverridesSupport(WebIns
pector.experimentsSettings.responsiveDesign.isEnabled() && WebInspector.dockCont
roller.canDock()); | |
| 351 | |
| 352 WebInspector.liveEditSupport = new WebInspector.LiveEditSupport(WebInspe
ctor.workspace); | 351 WebInspector.liveEditSupport = new WebInspector.LiveEditSupport(WebInspe
ctor.workspace); |
| 353 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); | 352 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); |
| 354 | 353 |
| 355 // Create settings before loading modules. | 354 // Create settings before loading modules. |
| 356 WebInspector.settings.initializeBackendSettings(); | 355 WebInspector.settings.initializeBackendSettings(); |
| 357 | 356 |
| 358 this._registerModules(); | 357 this._registerModules(); |
| 359 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); | 358 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); |
| 360 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); | 359 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); |
| 361 this._registerForwardedShortcuts(); | 360 this._registerForwardedShortcuts(); |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 822 }); | 821 }); |
| 823 | 822 |
| 824 /** | 823 /** |
| 825 * @param {string} name | 824 * @param {string} name |
| 826 * @return {?WebInspector.Panel} | 825 * @return {?WebInspector.Panel} |
| 827 */ | 826 */ |
| 828 WebInspector.panel = function(name) | 827 WebInspector.panel = function(name) |
| 829 { | 828 { |
| 830 return WebInspector.inspectorView.panel(name); | 829 return WebInspector.inspectorView.panel(name); |
| 831 } | 830 } |
| OLD | NEW |