| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 setTimeout(this._lateInitialization.bind(this), 100); | 273 setTimeout(this._lateInitialization.bind(this), 100); |
| 274 }, | 274 }, |
| 275 | 275 |
| 276 _connectAndCreateTarget: function() | 276 _connectAndCreateTarget: function() |
| 277 { | 277 { |
| 278 console.time("Main._connectAndCreateTarget"); | 278 console.time("Main._connectAndCreateTarget"); |
| 279 | 279 |
| 280 var capabilities = | 280 var capabilities = |
| 281 WebInspector.Target.Capability.Browser | WebInspector.Target.Capabil
ity.DOM | | 281 WebInspector.Target.Capability.Browser | WebInspector.Target.Capabil
ity.DOM | |
| 282 WebInspector.Target.Capability.JS | WebInspector.Target.Capability.L
og | | 282 WebInspector.Target.Capability.JS | WebInspector.Target.Capability.L
og | |
| 283 WebInspector.Target.Capability.Network | WebInspector.Target.Capabil
ity.Worker; | 283 WebInspector.Target.Capability.Network | WebInspector.Target.Capabil
ity.Target; |
| 284 if (Runtime.queryParam("isSharedWorker")) { | 284 if (Runtime.queryParam("isSharedWorker")) { |
| 285 capabilities = | 285 capabilities = |
| 286 WebInspector.Target.Capability.Browser | WebInspector.Target.Cap
ability.Log | | 286 WebInspector.Target.Capability.Browser | WebInspector.Target.Cap
ability.Log | |
| 287 WebInspector.Target.Capability.Network | WebInspector.Target.Cap
ability.Worker; | 287 WebInspector.Target.Capability.Network | WebInspector.Target.Cap
ability.Target; |
| 288 } else if (Runtime.queryParam("v8only")) { | 288 } else if (Runtime.queryParam("v8only")) { |
| 289 capabilities = WebInspector.Target.Capability.JS; | 289 capabilities = WebInspector.Target.Capability.JS; |
| 290 } | 290 } |
| 291 | 291 |
| 292 var target = WebInspector.targetManager.createTarget(WebInspector.UIStri
ng("Main"), capabilities, this._createMainConnection.bind(this), null); | 292 var target = WebInspector.targetManager.createTarget(WebInspector.UIStri
ng("Main"), capabilities, this._createMainConnection.bind(this), null); |
| 293 target.registerInspectorDispatcher(new WebInspector.Main.InspectorDomain
Dispatcher(target)); | 293 target.registerInspectorDispatcher(new WebInspector.Main.InspectorDomain
Dispatcher(target)); |
| 294 target.runtimeAgent().runIfWaitingForDebugger(); | 294 target.runtimeAgent().runIfWaitingForDebugger(); |
| 295 if (target.hasBrowserCapability()) | 295 if (target.hasBrowserCapability()) |
| 296 target.inspectorAgent().enable(); | 296 target.inspectorAgent().enable(); |
| 297 | 297 |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1112 * @override | 1112 * @override |
| 1113 * @return {?Element} | 1113 * @return {?Element} |
| 1114 */ | 1114 */ |
| 1115 settingElement: function() | 1115 settingElement: function() |
| 1116 { | 1116 { |
| 1117 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1117 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1118 } | 1118 } |
| 1119 }; | 1119 }; |
| 1120 | 1120 |
| 1121 new WebInspector.Main(); | 1121 new WebInspector.Main(); |
| OLD | NEW |