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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints
SidebarPane(); | 351 WebInspector.domBreakpointsSidebarPane = new WebInspector.DOMBreakpoints
SidebarPane(); |
352 | 352 |
353 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall
y"); | 353 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall
y"); |
354 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope
nLinkHandler", autoselectPanel); | 354 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope
nLinkHandler", autoselectPanel); |
355 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist
ry(openAnchorLocationSetting); | 355 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist
ry(openAnchorLocationSetting); |
356 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel,
function() { return false; }); | 356 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel,
function() { return false; }); |
357 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L
inkHandler()); | 357 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L
inkHandler()); |
358 | 358 |
359 new WebInspector.WorkspaceController(WebInspector.workspace); | 359 new WebInspector.WorkspaceController(WebInspector.workspace); |
360 | 360 |
361 WebInspector.overridesSupport = new WebInspector.OverridesSupport(); | 361 WebInspector.overridesSupport = new WebInspector.OverridesSupport(WebIns
pector.experimentsSettings.responsiveDesign.isEnabled() && WebInspector.dockCont
roller.canDock()); |
362 | 362 |
363 WebInspector.liveEditSupport = new WebInspector.LiveEditSupport(WebInspe
ctor.workspace); | 363 WebInspector.liveEditSupport = new WebInspector.LiveEditSupport(WebInspe
ctor.workspace); |
364 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); | 364 new WebInspector.CSSStyleSheetMapping(WebInspector.cssModel, WebInspecto
r.workspace, WebInspector.networkWorkspaceBinding); |
365 | 365 |
366 // Create settings before loading modules. | 366 // Create settings before loading modules. |
367 WebInspector.settings.initializeBackendSettings(); | 367 WebInspector.settings.initializeBackendSettings(); |
368 | 368 |
369 this._registerModules(); | 369 this._registerModules(); |
370 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); | 370 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); |
371 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); | 371 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns
pector.actionRegistry); |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 | 834 |
835 WebInspector.__defineGetter__("inspectedPageURL", function() | 835 WebInspector.__defineGetter__("inspectedPageURL", function() |
836 { | 836 { |
837 return WebInspector.resourceTreeModel.inspectedPageURL(); | 837 return WebInspector.resourceTreeModel.inspectedPageURL(); |
838 }); | 838 }); |
839 | 839 |
840 WebInspector.panel = function(name) | 840 WebInspector.panel = function(name) |
841 { | 841 { |
842 return WebInspector.inspectorView.panel(name); | 842 return WebInspector.inspectorView.panel(name); |
843 } | 843 } |
OLD | NEW |