| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 this.searchController = new WebInspector.SearchController(); | 418 this.searchController = new WebInspector.SearchController(); |
| 419 this.advancedSearchController = new WebInspector.AdvancedSearchController(); | 419 this.advancedSearchController = new WebInspector.AdvancedSearchController(); |
| 420 | 420 |
| 421 if (Capabilities.nativeInstrumentationEnabled) | 421 if (Capabilities.nativeInstrumentationEnabled) |
| 422 this.domBreakpointsSidebarPane = new WebInspector.DOMBreakpointsSidebarP
ane(); | 422 this.domBreakpointsSidebarPane = new WebInspector.DOMBreakpointsSidebarP
ane(); |
| 423 | 423 |
| 424 this._zoomLevel = WebInspector.settings.zoomLevel.get(); | 424 this._zoomLevel = WebInspector.settings.zoomLevel.get(); |
| 425 if (this._zoomLevel) | 425 if (this._zoomLevel) |
| 426 this._requestZoom(); | 426 this._requestZoom(); |
| 427 | 427 |
| 428 WebInspector.CSSCompletions.requestCSSNameCompletions(); |
| 428 this._createPanels(); | 429 this._createPanels(); |
| 429 this._createGlobalStatusBarItems(); | 430 this._createGlobalStatusBarItems(); |
| 430 | 431 |
| 431 this.toolbar = new WebInspector.Toolbar(); | 432 this.toolbar = new WebInspector.Toolbar(); |
| 432 WebInspector._installDockToRight(); | 433 WebInspector._installDockToRight(); |
| 433 | 434 |
| 434 for (var panelName in this.panels) | 435 for (var panelName in this.panels) |
| 435 this.addPanel(this.panels[panelName]); | 436 this.addPanel(this.panels[panelName]); |
| 436 | 437 |
| 437 this.addMainEventListeners(document); | 438 this.addMainEventListeners(document); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 457 WebInspector.showPanel(WebInspector.settings.lastActivePanel.get()); | 458 WebInspector.showPanel(WebInspector.settings.lastActivePanel.get()); |
| 458 } | 459 } |
| 459 | 460 |
| 460 InspectorAgent.enable(showInitialPanel); | 461 InspectorAgent.enable(showInitialPanel); |
| 461 DatabaseAgent.enable(); | 462 DatabaseAgent.enable(); |
| 462 DOMStorageAgent.enable(); | 463 DOMStorageAgent.enable(); |
| 463 | 464 |
| 464 if (WebInspector.settings.showPaintRects.get()) | 465 if (WebInspector.settings.showPaintRects.get()) |
| 465 PageAgent.setShowPaintRects(true); | 466 PageAgent.setShowPaintRects(true); |
| 466 | 467 |
| 467 WebInspector.CSSCompletions.requestCSSNameCompletions(); | |
| 468 WebInspector.WorkerManager.loadCompleted(); | 468 WebInspector.WorkerManager.loadCompleted(); |
| 469 InspectorFrontendAPI.loadCompleted(); | 469 InspectorFrontendAPI.loadCompleted(); |
| 470 } | 470 } |
| 471 | 471 |
| 472 WebInspector._installDockToRight = function() | 472 WebInspector._installDockToRight = function() |
| 473 { | 473 { |
| 474 // Re-use Settings infrastructure for the dock-to-right settings UI | 474 // Re-use Settings infrastructure for the dock-to-right settings UI |
| 475 WebInspector.settings.dockToRight.set(WebInspector.queryParamsObject.dockSid
e === "right"); | 475 WebInspector.settings.dockToRight.set(WebInspector.queryParamsObject.dockSid
e === "right"); |
| 476 | 476 |
| 477 if (WebInspector.settings.dockToRight.get()) | 477 if (WebInspector.settings.dockToRight.get()) |
| (...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 WebInspector.frontendReused = function() | 1003 WebInspector.frontendReused = function() |
| 1004 { | 1004 { |
| 1005 this.resourceTreeModel.frontendReused(); | 1005 this.resourceTreeModel.frontendReused(); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 WebInspector._toolbarItemClicked = function(event) | 1008 WebInspector._toolbarItemClicked = function(event) |
| 1009 { | 1009 { |
| 1010 var toolbarItem = event.currentTarget; | 1010 var toolbarItem = event.currentTarget; |
| 1011 WebInspector.inspectorView.setCurrentPanel(toolbarItem.panel); | 1011 WebInspector.inspectorView.setCurrentPanel(toolbarItem.panel); |
| 1012 } | 1012 } |
| OLD | NEW |