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

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

Issue 472353002: DevTools: Get rid of WebInspector.PresentationMessage interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clear event targets map and handle ProjectRemoved 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 function updateToolbarColors(event) 297 function updateToolbarColors(event)
298 { 298 {
299 WebInspector.setToolbarColors(/** @type {string} */ (event.data["bac kgroundColor"]), /** @type {string} */ (event.data["color"])); 299 WebInspector.setToolbarColors(/** @type {string} */ (event.data["bac kgroundColor"]), /** @type {string} */ (event.data["color"]));
300 } 300 }
301 WebInspector.ContextMenu.initialize(); 301 WebInspector.ContextMenu.initialize();
302 WebInspector.targetManager.createTarget(WebInspector.UIString("Main"), c onnection, this._mainTargetCreated.bind(this)); 302 WebInspector.targetManager.createTarget(WebInspector.UIString("Main"), c onnection, this._mainTargetCreated.bind(this));
303 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager(); 303 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager();
304 WebInspector.workspace = new WebInspector.Workspace(WebInspector.isolate dFileSystemManager.mapping()); 304 WebInspector.workspace = new WebInspector.Workspace(WebInspector.isolate dFileSystemManager.mapping());
305 WebInspector.networkWorkspaceBinding = new WebInspector.NetworkWorkspace Binding(WebInspector.workspace); 305 WebInspector.networkWorkspaceBinding = new WebInspector.NetworkWorkspace Binding(WebInspector.workspace);
306 new WebInspector.NetworkUISourceCodeProvider(WebInspector.networkWorkspa ceBinding, WebInspector.workspace); 306 new WebInspector.NetworkUISourceCodeProvider(WebInspector.networkWorkspa ceBinding, WebInspector.workspace);
307 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace ); 307 WebInspector.presentationConsoleMessageHelper = new WebInspector.Present ationConsoleMessageHelper(WebInspector.workspace);
308 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( ); 308 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( );
309 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkWorkspaceBinding); 309 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkWorkspaceBinding);
310 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); 310 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace);
311 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding); 311 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding);
312 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We bInspector.workspace); 312 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We bInspector.workspace);
313 this._executionContextSelector = new WebInspector.ExecutionContextSelect or(); 313 this._executionContextSelector = new WebInspector.ExecutionContextSelect or();
314 314
315 if (!WebInspector.isWorkerFrontend()) 315 if (!WebInspector.isWorkerFrontend())
316 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController(); 316 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController();
317 this._createGlobalStatusBarItems(); 317 this._createGlobalStatusBarItems();
(...skipping 582 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