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

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

Issue 473553003: DevTools: Process correctly a disconnection during target initialization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
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();
318 }, 318 },
319 319
320 /** 320 /**
321 * @param {!WebInspector.Target} mainTarget 321 * @param {?WebInspector.Target} target
322 */ 322 */
323 _mainTargetCreated: function(mainTarget) 323 _mainTargetCreated: function(target)
324 { 324 {
325 console.timeStamp("Main._mainTargetCreated"); 325 console.timeStamp("Main._mainTargetCreated");
326 326
327 var mainTarget = /** @type {!WebInspector.Target} */(target);
327 this._registerShortcuts(); 328 this._registerShortcuts();
328 329
329 WebInspector.workerTargetManager = new WebInspector.WorkerTargetManager( mainTarget, WebInspector.targetManager); 330 WebInspector.workerTargetManager = new WebInspector.WorkerTargetManager( mainTarget, WebInspector.targetManager);
330 331
331 InspectorBackend.registerInspectorDispatcher(this); 332 InspectorBackend.registerInspectorDispatcher(this);
332 333
333 if (WebInspector.isWorkerFrontend()) 334 if (WebInspector.isWorkerFrontend())
334 mainTarget.workerManager.addEventListener(WebInspector.WorkerManager .Events.WorkerDisconnected, onWorkerDisconnected); 335 mainTarget.workerManager.addEventListener(WebInspector.WorkerManager .Events.WorkerDisconnected, onWorkerDisconnected);
335 336
336 function onWorkerDisconnected() 337 function onWorkerDisconnected()
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 901
901 WebInspector.Main.InspectedNodeRevealer.prototype = { 902 WebInspector.Main.InspectedNodeRevealer.prototype = {
902 /** 903 /**
903 * @param {!WebInspector.Event} event 904 * @param {!WebInspector.Event} event
904 */ 905 */
905 _inspectNode: function(event) 906 _inspectNode: function(event)
906 { 907 {
907 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 908 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
908 } 909 }
909 } 910 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/Target.js » ('j') | Source/devtools/front_end/sdk/WorkerTargetManager.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698