Chromium Code Reviews| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 }, | 139 }, |
| 140 | 140 |
| 141 _debuggerPaused: function() | 141 _debuggerPaused: function() |
| 142 { | 142 { |
| 143 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode l.Events.DebuggerPaused, this._debuggerPaused, this); | 143 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode l.Events.DebuggerPaused, this._debuggerPaused, this); |
| 144 WebInspector.inspectorView.showPanel("sources"); | 144 WebInspector.inspectorView.showPanel("sources"); |
| 145 }, | 145 }, |
| 146 | 146 |
| 147 _loaded: function() | 147 _loaded: function() |
| 148 { | 148 { |
| 149 if (WebInspector.queryParam("toolbox")) { | |
| 150 new WebInspector.ToolboxApp(); | |
| 151 return; | |
| 152 } | |
| 153 | |
| 154 WebInspector.settings = new WebInspector.Settings(); | |
| 155 WebInspector.experimentsSettings = new WebInspector.ExperimentsSettings( WebInspector.queryParam("experiments") !== null); | |
| 156 // This setting is added for backwards compatibility with Devtools CodeS chool extension. DO NOT REMOVE | |
|
apavlov
2014/06/04 09:04:25
added -> needed
dgozman
2014/06/04 11:16:19
Done.
| |
| 157 WebInspector.settings.pauseOnExceptionStateString = new WebInspector.Pau seOnExceptionStateSetting(); | |
| 158 | |
| 149 if (!InspectorFrontendHost.sendMessageToEmbedder) { | 159 if (!InspectorFrontendHost.sendMessageToEmbedder) { |
| 150 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString(" Incompatible Chrome version")); | 160 var helpScreen = new WebInspector.HelpScreen(WebInspector.UIString(" Incompatible Chrome version")); |
| 151 var p = helpScreen.contentElement.createChild("p", "help-section"); | 161 var p = helpScreen.contentElement.createChild("p", "help-section"); |
| 152 p.textContent = WebInspector.UIString("Please upgrade to a newer Chr ome version (you might need a Dev or Canary build)."); | 162 p.textContent = WebInspector.UIString("Please upgrade to a newer Chr ome version (you might need a Dev or Canary build)."); |
| 153 helpScreen.showModal(); | 163 helpScreen.showModal(); |
| 154 return; | 164 return; |
| 155 } | 165 } |
| 156 | 166 |
| 157 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); | 167 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); |
| 158 | 168 |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 774 | 784 |
| 775 WebInspector.__defineGetter__("inspectedPageURL", function() | 785 WebInspector.__defineGetter__("inspectedPageURL", function() |
| 776 { | 786 { |
| 777 return WebInspector.resourceTreeModel.inspectedPageURL(); | 787 return WebInspector.resourceTreeModel.inspectedPageURL(); |
| 778 }); | 788 }); |
| 779 | 789 |
| 780 WebInspector.panel = function(name) | 790 WebInspector.panel = function(name) |
| 781 { | 791 { |
| 782 return WebInspector.inspectorView.panel(name); | 792 return WebInspector.inspectorView.panel(name); |
| 783 } | 793 } |
| OLD | NEW |