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

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

Issue 298913004: [DevTools] Add Toolbox page to undocked DevTools frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed DockSide events Created 6 years, 6 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
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/App.js ('k') | Source/devtools/front_end/sdk/OverridesSupport.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698