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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 }, | 172 }, |
173 | 173 |
174 _debuggerPaused: function() | 174 _debuggerPaused: function() |
175 { | 175 { |
176 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.DebuggerPaused, this._debuggerPaused, this); | 176 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.DebuggerPaused, this._debuggerPaused, this); |
177 WebInspector.inspectorView.showPanel("sources"); | 177 WebInspector.inspectorView.showPanel("sources"); |
178 }, | 178 }, |
179 | 179 |
180 _loaded: function() | 180 _loaded: function() |
181 { | 181 { |
| 182 if (WebInspector.queryParam("toolbox")) { |
| 183 new WebInspector.Toolbox(); |
| 184 return; |
| 185 } |
| 186 |
| 187 WebInspector.settings = new WebInspector.Settings(); |
| 188 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings(
WebInspector.queryParam("experiments") !== null); |
| 189 // This setting is needed for backwards compatibility with Devtools Code
School extension. DO NOT REMOVE |
| 190 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau
seOnExceptionStateSetting(); |
| 191 |
182 if (!InspectorFrontendHost.sendMessageToEmbedder) { | 192 if (!InspectorFrontendHost.sendMessageToEmbedder) { |
183 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString("
Incompatible Chrome version")); | 193 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString("
Incompatible Chrome version")); |
184 var p = helpScreen.contentElement.createChild("p", "help-section"); | 194 var p = helpScreen.contentElement.createChild("p", "help-section"); |
185 p.textContent = WebInspector.UIString("Please upgrade to a newer Chr
ome version (you might need a Dev or Canary build)."); | 195 p.textContent = WebInspector.UIString("Please upgrade to a newer Chr
ome version (you might need a Dev or Canary build)."); |
186 helpScreen.showModal(); | 196 helpScreen.showModal(); |
187 return; | 197 return; |
188 } | 198 } |
189 | 199 |
190 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); | 200 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); |
191 | 201 |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 | 808 |
799 WebInspector.__defineGetter__("inspectedPageURL", function() | 809 WebInspector.__defineGetter__("inspectedPageURL", function() |
800 { | 810 { |
801 return WebInspector.resourceTreeModel.inspectedPageURL(); | 811 return WebInspector.resourceTreeModel.inspectedPageURL(); |
802 }); | 812 }); |
803 | 813 |
804 WebInspector.panel = function(name) | 814 WebInspector.panel = function(name) |
805 { | 815 { |
806 return WebInspector.inspectorView.panel(name); | 816 return WebInspector.inspectorView.panel(name); |
807 } | 817 } |
OLD | NEW |