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

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

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/common/ModuleManager.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace ); 328 new WebInspector.PresentationConsoleMessageHelper(WebInspector.workspace );
329 329
330 // Create settings before loading modules. 330 // Create settings before loading modules.
331 WebInspector.settings.initializeBackendSettings(); 331 WebInspector.settings.initializeBackendSettings();
332 332
333 this._registerModules(); 333 this._registerModules();
334 WebInspector.actionRegistry = new WebInspector.ActionRegistry(); 334 WebInspector.actionRegistry = new WebInspector.ActionRegistry();
335 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry); 335 WebInspector.shortcutRegistry = new WebInspector.ShortcutRegistry(WebIns pector.actionRegistry);
336 this._registerForwardedShortcuts(); 336 this._registerForwardedShortcuts();
337 337
338 WebInspector.panels = {};
339 WebInspector.inspectorView = new WebInspector.InspectorView(); 338 WebInspector.inspectorView = new WebInspector.InspectorView();
339
340 // Screencast controller creates a root view itself. 340 // Screencast controller creates a root view itself.
341 if (mainTarget.canScreencast) 341 if (mainTarget.canScreencast)
342 this._screencastController = new WebInspector.ScreencastController() ; 342 this._screencastController = new WebInspector.ScreencastController() ;
343 else 343 else
344 this._createRootView(); 344 this._createRootView();
345 this._createGlobalStatusBarItems(); 345 this._createGlobalStatusBarItems();
346 346
347 this._addMainEventListeners(document); 347 this._addMainEventListeners(document);
348 348
349 function onResize() 349 function onResize()
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 804
805 WebInspector.__defineGetter__("inspectedPageURL", function() 805 WebInspector.__defineGetter__("inspectedPageURL", function()
806 { 806 {
807 return WebInspector.resourceTreeModel.inspectedPageURL(); 807 return WebInspector.resourceTreeModel.inspectedPageURL();
808 }); 808 });
809 809
810 WebInspector.panel = function(name) 810 WebInspector.panel = function(name)
811 { 811 {
812 return WebInspector.inspectorView.panel(name); 812 return WebInspector.inspectorView.panel(name);
813 } 813 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/common/ModuleManager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698