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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 this._updateErrorAndWarningCounts(); | 344 this._updateErrorAndWarningCounts(); |
345 | 345 |
346 WebInspector.extensionServerProxy.setFrontendReady(); | 346 WebInspector.extensionServerProxy.setFrontendReady(); |
347 | 347 |
348 WebInspector.console.enableAgent(); | 348 WebInspector.console.enableAgent(); |
349 | 349 |
350 WebInspector.databaseModel = new WebInspector.DatabaseModel(); | 350 WebInspector.databaseModel = new WebInspector.DatabaseModel(); |
351 WebInspector.domStorageModel = new WebInspector.DOMStorageModel(); | 351 WebInspector.domStorageModel = new WebInspector.DOMStorageModel(); |
352 WebInspector.cpuProfilerModel = new WebInspector.CPUProfilerModel(); | 352 WebInspector.cpuProfilerModel = new WebInspector.CPUProfilerModel(); |
353 | 353 |
| 354 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) |
| 355 new WebInspector.WorkerTargetsProvider(mainTarget, WebInspector.targ
etManager); |
| 356 |
354 InspectorAgent.enable(inspectorAgentEnableCallback.bind(this)); | 357 InspectorAgent.enable(inspectorAgentEnableCallback.bind(this)); |
355 | 358 |
356 /** | 359 /** |
357 * @this {WebInspector.Main} | 360 * @this {WebInspector.Main} |
358 */ | 361 */ |
359 function inspectorAgentEnableCallback() | 362 function inspectorAgentEnableCallback() |
360 { | 363 { |
361 WebInspector.inspectorView.showInitialPanel(); | 364 WebInspector.inspectorView.showInitialPanel(); |
362 | 365 |
363 if (WebInspector.overridesSupport.hasActiveOverrides()) { | 366 if (WebInspector.overridesSupport.hasActiveOverrides()) { |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 711 |
709 WebInspector.reload = function() | 712 WebInspector.reload = function() |
710 { | 713 { |
711 InspectorAgent.reset(); | 714 InspectorAgent.reset(); |
712 window.location.reload(); | 715 window.location.reload(); |
713 } | 716 } |
714 | 717 |
715 new WebInspector.Main(); | 718 new WebInspector.Main(); |
716 | 719 |
717 window.DEBUG = true; | 720 window.DEBUG = true; |
OLD | NEW |