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

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

Issue 299443016: DevTools: Decouple debugger model from UI entities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge DebuggerScriptMapping into DebuggerWorkspaceBinding 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.SetToolbarColors, updateToolbarColors); 291 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E vents.SetToolbarColors, updateToolbarColors);
292 /** 292 /**
293 * @param {!WebInspector.Event} event 293 * @param {!WebInspector.Event} event
294 */ 294 */
295 function updateToolbarColors(event) 295 function updateToolbarColors(event)
296 { 296 {
297 WebInspector.setToolbarColors(/** @type {string} */ (event.data["bac kgroundColor"]), /** @type {string} */ (event.data["color"])); 297 WebInspector.setToolbarColors(/** @type {string} */ (event.data["bac kgroundColor"]), /** @type {string} */ (event.data["color"]));
298 } 298 }
299 WebInspector.ContextMenu.initialize(); 299 WebInspector.ContextMenu.initialize();
300 WebInspector.targetManager.createTarget(WebInspector.UIString("Main"), c onnection, this._mainTargetCreated.bind(this)); 300 WebInspector.targetManager.createTarget(WebInspector.UIString("Main"), c onnection, this._mainTargetCreated.bind(this));
301 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( );
302 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding();
303 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager(); 301 WebInspector.isolatedFileSystemManager = new WebInspector.IsolatedFileSy stemManager();
304 WebInspector.workspace = new WebInspector.Workspace(WebInspector.isolate dFileSystemManager.mapping()); 302 WebInspector.workspace = new WebInspector.Workspace(WebInspector.isolate dFileSystemManager.mapping());
305 WebInspector.networkWorkspaceBinding = new WebInspector.NetworkWorkspace Binding(WebInspector.workspace); 303 WebInspector.networkWorkspaceBinding = new WebInspector.NetworkWorkspace Binding(WebInspector.workspace);
306 new WebInspector.NetworkUISourceCodeProvider(WebInspector.networkWorkspa ceBinding, WebInspector.workspace); 304 new WebInspector.NetworkUISourceCodeProvider(WebInspector.networkWorkspa ceBinding, WebInspector.workspace);
307 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace ); 305 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace );
306 WebInspector.cssWorkspaceBinding = new WebInspector.CSSWorkspaceBinding( );
307 WebInspector.debuggerWorkspaceBinding = new WebInspector.DebuggerWorkspa ceBinding(WebInspector.targetManager, WebInspector.workspace, WebInspector.netwo rkWorkspaceBinding);
308 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace); 308 WebInspector.fileSystemWorkspaceBinding = new WebInspector.FileSystemWor kspaceBinding(WebInspector.isolatedFileSystemManager, WebInspector.workspace);
309 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage r); 309 WebInspector.breakpointManager = new WebInspector.BreakpointManager(WebI nspector.settings.breakpoints, WebInspector.workspace, WebInspector.targetManage r, WebInspector.debuggerWorkspaceBinding);
310 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We bInspector.workspace); 310 WebInspector.scriptSnippetModel = new WebInspector.ScriptSnippetModel(We bInspector.workspace);
311 this._executionContextSelector = new WebInspector.ExecutionContextSelect or(); 311 this._executionContextSelector = new WebInspector.ExecutionContextSelect or();
312 312
313 if (!WebInspector.isWorkerFrontend()) 313 if (!WebInspector.isWorkerFrontend())
314 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController(); 314 WebInspector.inspectElementModeController = new WebInspector.Inspect ElementModeController();
315 this._createGlobalStatusBarItems(); 315 this._createGlobalStatusBarItems();
316 }, 316 },
317 317
318 /** 318 /**
319 * @param {!WebInspector.Target} mainTarget 319 * @param {!WebInspector.Target} mainTarget
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 916
917 WebInspector.Main.InspectedNodeRevealer.prototype = { 917 WebInspector.Main.InspectedNodeRevealer.prototype = {
918 /** 918 /**
919 * @param {!WebInspector.Event} event 919 * @param {!WebInspector.Event} event
920 */ 920 */
921 _inspectNode: function(event) 921 _inspectNode: function(event)
922 { 922 {
923 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 923 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
924 } 924 }
925 } 925 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698