Chromium Code Reviews| 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 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 215 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager(); | 215 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager(); |
| 216 WebInspector.workspace = new WebInspector.Workspace(WebInspector.isolate dFileSystemManager.mapping()); | 216 WebInspector.workspace = new WebInspector.Workspace(WebInspector.isolate dFileSystemManager.mapping()); |
| 217 WebInspector.networkWorkspaceBinding = new WebInspector.NetworkWorkspace Binding(WebInspector.workspace); | 217 WebInspector.networkWorkspaceBinding = new WebInspector.NetworkWorkspace Binding(WebInspector.workspace); |
| 218 new WebInspector.NetworkUISourceCodeProvider(WebInspector.networkWorkspa ceBinding, WebInspector.workspace); | 218 new WebInspector.NetworkUISourceCodeProvider(WebInspector.networkWorkspa ceBinding, WebInspector.workspace); |
| 219 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace); | 219 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace); |
| 220 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( ); | 220 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( ); |
| 221 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkWorkspaceBinding); | 221 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkWorkspaceBinding); |
| 222 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); | 222 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); |
| 223 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding); | 223 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding); |
| 224 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We bInspector.workspace); | 224 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We bInspector.workspace); |
| 225 WebInspector.extensionServer = new WebInspector.ExtensionServer(); | |
|
caseq
2014/10/20 09:20:10
This leaves a race between _createAppUI() is invok
| |
| 226 | |
| 225 new WebInspector.ContentScriptProjectDecorator(); | 227 new WebInspector.ContentScriptProjectDecorator(); |
| 226 new WebInspector.ExecutionContextSelector(); | 228 new WebInspector.ExecutionContextSelector(); |
| 227 | 229 |
| 228 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall y"); | 230 var autoselectPanel = WebInspector.UIString("a panel chosen automaticall y"); |
| 229 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel); | 231 var openAnchorLocationSetting = WebInspector.settings.createSetting("ope nLinkHandler", autoselectPanel); |
| 230 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting); | 232 WebInspector.openAnchorLocationRegistry = new WebInspector.HandlerRegist ry(openAnchorLocationSetting); |
| 231 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; }); | 233 WebInspector.openAnchorLocationRegistry.registerHandler(autoselectPanel, function() { return false; }); |
| 232 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler()); | 234 WebInspector.Linkifier.setLinkHandler(new WebInspector.HandlerRegistry.L inkHandler()); |
| 233 | 235 |
| 234 new WebInspector.WorkspaceController(WebInspector.workspace); | 236 new WebInspector.WorkspaceController(WebInspector.workspace); |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 252 | 254 |
| 253 // It is important to kick controller lifetime after apps are instantiat ed. | 255 // It is important to kick controller lifetime after apps are instantiat ed. |
| 254 WebInspector.dockController.initialize(); | 256 WebInspector.dockController.initialize(); |
| 255 console.timeStamp("Main._presentUI"); | 257 console.timeStamp("Main._presentUI"); |
| 256 WebInspector.app.presentUI(); | 258 WebInspector.app.presentUI(); |
| 257 | 259 |
| 258 if (!WebInspector.isWorkerFrontend()) | 260 if (!WebInspector.isWorkerFrontend()) |
| 259 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController(); | 261 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController(); |
| 260 this._createGlobalStatusBarItems(); | 262 this._createGlobalStatusBarItems(); |
| 261 | 263 |
| 262 WebInspector.extensionServerProxy.setFrontendReady(); | |
| 263 | |
| 264 InspectorFrontendHost.loadCompleted(); | 264 InspectorFrontendHost.loadCompleted(); |
| 265 | 265 |
| 266 // Give UI cycles to repaint, then proceed with creating connection. | 266 // Give UI cycles to repaint, then proceed with creating connection. |
| 267 setTimeout(this._createConnection.bind(this), 0); | 267 setTimeout(this._createConnection.bind(this), 0); |
| 268 }, | 268 }, |
| 269 | 269 |
| 270 _createConnection: function() | 270 _createConnection: function() |
| 271 { | 271 { |
| 272 console.timeStamp("Main._createConnection"); | 272 console.timeStamp("Main._createConnection"); |
| 273 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); | 273 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 874 /** | 874 /** |
| 875 * @param {!WebInspector.Event} event | 875 * @param {!WebInspector.Event} event |
| 876 */ | 876 */ |
| 877 _inspectNode: function(event) | 877 _inspectNode: function(event) |
| 878 { | 878 { |
| 879 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); | 879 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); |
| 880 } | 880 } |
| 881 } | 881 } |
| 882 | 882 |
| 883 new WebInspector.Main(); | 883 new WebInspector.Main(); |
| OLD | NEW |