| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 if (canDock) | 256 if (canDock) |
| 257 WebInspector.app = new WebInspector.AdvancedApp(); | 257 WebInspector.app = new WebInspector.AdvancedApp(); |
| 258 else if (Runtime.queryParam("remoteFrontend")) | 258 else if (Runtime.queryParam("remoteFrontend")) |
| 259 WebInspector.app = new WebInspector.ScreencastApp(); | 259 WebInspector.app = new WebInspector.ScreencastApp(); |
| 260 else | 260 else |
| 261 WebInspector.app = new WebInspector.SimpleApp(); | 261 WebInspector.app = new WebInspector.SimpleApp(); |
| 262 | 262 |
| 263 // It is important to kick controller lifetime after apps are instantiat
ed. | 263 // It is important to kick controller lifetime after apps are instantiat
ed. |
| 264 WebInspector.dockController.initialize(); | 264 WebInspector.dockController.initialize(); |
| 265 console.timeStamp("Main._presentUI"); | 265 console.timeStamp("Main._presentUI"); |
| 266 WebInspector.app.presentUI(); | 266 WebInspector.app.presentUI(document); |
| 267 | 267 |
| 268 if (!WebInspector.isWorkerFrontend()) | 268 if (!WebInspector.isWorkerFrontend()) |
| 269 WebInspector.inspectElementModeController = new WebInspector.Inspect
ElementModeController(); | 269 WebInspector.inspectElementModeController = new WebInspector.Inspect
ElementModeController(); |
| 270 this._createGlobalStatusBarItems(); | 270 this._createGlobalStatusBarItems(); |
| 271 | 271 |
| 272 InspectorFrontendHost.loadCompleted(); | 272 InspectorFrontendHost.loadCompleted(); |
| 273 | 273 |
| 274 // Give UI cycles to repaint, then proceed with creating connection. | 274 // Give UI cycles to repaint, then proceed with creating connection. |
| 275 setTimeout(this._createConnection.bind(this), 0); | 275 setTimeout(this._createConnection.bind(this), 0); |
| 276 }, | 276 }, |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 /** | 894 /** |
| 895 * @param {!WebInspector.Event} event | 895 * @param {!WebInspector.Event} event |
| 896 */ | 896 */ |
| 897 _inspectNode: function(event) | 897 _inspectNode: function(event) |
| 898 { | 898 { |
| 899 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 899 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
| 900 } | 900 } |
| 901 } | 901 } |
| 902 | 902 |
| 903 new WebInspector.Main(); | 903 new WebInspector.Main(); |
| OLD | NEW |