| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 WebInspector.dockController.initialize(); | 246 WebInspector.dockController.initialize(); |
| 247 console.timeStamp("Main._presentUI"); | 247 console.timeStamp("Main._presentUI"); |
| 248 WebInspector.app.presentUI(); | 248 WebInspector.app.presentUI(); |
| 249 | 249 |
| 250 if (!WebInspector.isWorkerFrontend()) | 250 if (!WebInspector.isWorkerFrontend()) |
| 251 WebInspector.inspectElementModeController = new WebInspector.Inspect
ElementModeController(); | 251 WebInspector.inspectElementModeController = new WebInspector.Inspect
ElementModeController(); |
| 252 this._createGlobalStatusBarItems(); | 252 this._createGlobalStatusBarItems(); |
| 253 | 253 |
| 254 WebInspector.extensionServerProxy.setFrontendReady(); | 254 WebInspector.extensionServerProxy.setFrontendReady(); |
| 255 | 255 |
| 256 // FIXME: Remove once the upstream counterpart has landed. | |
| 257 InspectorFrontendAPI.loadCompleted(); | |
| 258 | |
| 259 InspectorFrontendHost.loadCompleted(); | 256 InspectorFrontendHost.loadCompleted(); |
| 260 | 257 |
| 261 // Give UI cycles to repaint, then proceed with creating connection. | 258 // Give UI cycles to repaint, then proceed with creating connection. |
| 262 setTimeout(this._createConnection.bind(this), 0); | 259 setTimeout(this._createConnection.bind(this), 0); |
| 263 }, | 260 }, |
| 264 | 261 |
| 265 _createConnection: function() | 262 _createConnection: function() |
| 266 { | 263 { |
| 267 console.timeStamp("Main._createConnection"); | 264 console.timeStamp("Main._createConnection"); |
| 268 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); | 265 InspectorBackend.loadFromJSONIfNeeded("../protocol.json"); |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 /** | 866 /** |
| 870 * @param {!WebInspector.Event} event | 867 * @param {!WebInspector.Event} event |
| 871 */ | 868 */ |
| 872 _inspectNode: function(event) | 869 _inspectNode: function(event) |
| 873 { | 870 { |
| 874 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); | 871 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event
.data)); |
| 875 } | 872 } |
| 876 } | 873 } |
| 877 | 874 |
| 878 new WebInspector.Main(); | 875 new WebInspector.Main(); |
| OLD | NEW |