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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 return; | 181 return; |
182 } | 182 } |
183 | 183 |
184 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); | 184 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); |
185 WebInspector.dockController = new WebInspector.DockController(!!WebInspe
ctor.queryParam("can_dock")); | 185 WebInspector.dockController = new WebInspector.DockController(!!WebInspe
ctor.queryParam("can_dock")); |
186 | 186 |
187 var onConnectionReady = this._doLoadedDone.bind(this); | 187 var onConnectionReady = this._doLoadedDone.bind(this); |
188 | 188 |
189 var workerId = WebInspector.queryParam("dedicatedWorkerId"); | 189 var workerId = WebInspector.queryParam("dedicatedWorkerId"); |
190 if (workerId) { | 190 if (workerId) { |
191 new WebInspector.WorkerConnection(workerId, onConnectionReady); | 191 new WebInspector.ExternalWorkerConnection(workerId, onConnectionRead
y); |
192 return; | 192 return; |
193 } | 193 } |
194 | 194 |
195 var ws; | 195 var ws; |
196 if (WebInspector.queryParam("ws")) { | 196 if (WebInspector.queryParam("ws")) { |
197 ws = "ws://" + WebInspector.queryParam("ws"); | 197 ws = "ws://" + WebInspector.queryParam("ws"); |
198 } else if (WebInspector.queryParam("page")) { | 198 } else if (WebInspector.queryParam("page")) { |
199 var page = WebInspector.queryParam("page"); | 199 var page = WebInspector.queryParam("page"); |
200 var host = WebInspector.queryParam("host") || window.location.host; | 200 var host = WebInspector.queryParam("host") || window.location.host; |
201 ws = "ws://" + host + "/devtools/page/" + page; | 201 ws = "ws://" + host + "/devtools/page/" + page; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 { | 249 { |
250 new WebInspector.VersionController().updateVersion(); | 250 new WebInspector.VersionController().updateVersion(); |
251 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); | 251 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); |
252 this._registerShortcuts(); | 252 this._registerShortcuts(); |
253 | 253 |
254 // set order of some sections explicitly | 254 // set order of some sections explicitly |
255 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); | 255 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); |
256 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan
el")); | 256 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan
el")); |
257 WebInspector.ShortcutsScreen.registerShortcuts(); | 257 WebInspector.ShortcutsScreen.registerShortcuts(); |
258 | 258 |
| 259 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) |
| 260 new WebInspector.WorkerTargetManager(mainTarget, WebInspector.target
Manager); |
| 261 |
259 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.C
onsoleCleared, this._resetErrorAndWarningCounts, this); | 262 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.C
onsoleCleared, this._resetErrorAndWarningCounts, this); |
260 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.M
essageAdded, this._updateErrorAndWarningCounts, this); | 263 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.M
essageAdded, this._updateErrorAndWarningCounts, this); |
261 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.R
epeatCountUpdated, this._updateErrorAndWarningCounts, this); | 264 WebInspector.console.addEventListener(WebInspector.ConsoleModel.Events.R
epeatCountUpdated, this._updateErrorAndWarningCounts, this); |
262 | 265 |
263 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E
vents.DebuggerPaused, this._debuggerPaused, this); | 266 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerModel.E
vents.DebuggerPaused, this._debuggerPaused, this); |
264 WebInspector.networkLog = new WebInspector.NetworkLog(); | 267 WebInspector.networkLog = new WebInspector.NetworkLog(); |
265 | 268 |
266 WebInspector.zoomManager = new WebInspector.ZoomManager(); | 269 WebInspector.zoomManager = new WebInspector.ZoomManager(); |
267 | 270 |
268 WebInspector.advancedSearchController = new WebInspector.AdvancedSearchC
ontroller(); | 271 WebInspector.advancedSearchController = new WebInspector.AdvancedSearchC
ontroller(); |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 | 731 |
729 WebInspector.reload = function() | 732 WebInspector.reload = function() |
730 { | 733 { |
731 InspectorAgent.reset(); | 734 InspectorAgent.reset(); |
732 window.location.reload(); | 735 window.location.reload(); |
733 } | 736 } |
734 | 737 |
735 new WebInspector.Main(); | 738 new WebInspector.Main(); |
736 | 739 |
737 window.DEBUG = true; | 740 window.DEBUG = true; |
OLD | NEW |