| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 capabilities = WebInspector.Target.Capability.JS; | 296 capabilities = WebInspector.Target.Capability.JS; |
| 297 | 297 |
| 298 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.
UIString("Main"), capabilities, connection, null); | 298 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.
UIString("Main"), capabilities, connection, null); |
| 299 console.timeStamp("Main._mainTargetCreated"); | 299 console.timeStamp("Main._mainTargetCreated"); |
| 300 this._registerShortcuts(); | 300 this._registerShortcuts(); |
| 301 | 301 |
| 302 this._mainTarget.registerInspectorDispatcher(this); | 302 this._mainTarget.registerInspectorDispatcher(this); |
| 303 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.ReloadInspectedPage, this._reloadInspectedPage, this); | 303 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.ReloadInspectedPage, this._reloadInspectedPage, this); |
| 304 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); | 304 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); |
| 305 | 305 |
| 306 this._mainTarget.runtimeAgent().runIfWaitingForDebugger(); | 306 this._mainTarget.runtimeAgent().run(); |
| 307 | 307 |
| 308 if (this._mainTarget.hasBrowserCapability()) | 308 if (this._mainTarget.hasBrowserCapability()) |
| 309 this._mainTarget.inspectorAgent().enable(); | 309 this._mainTarget.inspectorAgent().enable(); |
| 310 InspectorFrontendHost.readyForTest(); | 310 InspectorFrontendHost.readyForTest(); |
| 311 | 311 |
| 312 // Asynchronously run the extensions. | 312 // Asynchronously run the extensions. |
| 313 setTimeout(lateInitialization, 0); | 313 setTimeout(lateInitialization, 0); |
| 314 | 314 |
| 315 function lateInitialization() | 315 function lateInitialization() |
| 316 { | 316 { |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1092 * @override | 1092 * @override |
| 1093 * @return {?Element} | 1093 * @return {?Element} |
| 1094 */ | 1094 */ |
| 1095 settingElement: function() | 1095 settingElement: function() |
| 1096 { | 1096 { |
| 1097 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1097 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1098 } | 1098 } |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 new WebInspector.Main(); | 1101 new WebInspector.Main(); |
| OLD | NEW |