| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 /** | 303 /** |
| 304 * @param {!WebInspector.Event} event | 304 * @param {!WebInspector.Event} event |
| 305 */ | 305 */ |
| 306 function onDisconnected(event) | 306 function onDisconnected(event) |
| 307 { | 307 { |
| 308 if (WebInspector._disconnectedScreenWithReasonWasShown) | 308 if (WebInspector._disconnectedScreenWithReasonWasShown) |
| 309 return; | 309 return; |
| 310 WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason)
; | 310 WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason)
; |
| 311 } | 311 } |
| 312 | 312 |
| 313 var capabilities = WebInspector.Target.Capability.Browser | WebInspector
.Target.Capability.JS | WebInspector.Target.Capability.Network | WebInspector.Ta
rget.Capability.Worker; | 313 var capabilities = WebInspector.Target.Capability.Browser | WebInspector
.Target.Capability.JS | WebInspector.Target.Capability.Network | WebInspector.Ta
rget.Capability.Worker | WebInspector.Target.Capability.DOM; |
| 314 if (Runtime.queryParam("isSharedWorker")) | 314 if (Runtime.queryParam("isSharedWorker")) |
| 315 capabilities = WebInspector.Target.Capability.Network | WebInspector
.Target.Capability.Worker; | 315 capabilities = WebInspector.Target.Capability.Browser | WebInspector
.Target.Capability.Network | WebInspector.Target.Capability.Worker; |
| 316 else if (Runtime.queryParam("v8only")) | 316 else if (Runtime.queryParam("v8only")) |
| 317 capabilities = WebInspector.Target.Capability.JS; | 317 capabilities = WebInspector.Target.Capability.JS; |
| 318 | 318 |
| 319 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.
UIString("Main"), capabilities, connection, null); | 319 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.
UIString("Main"), capabilities, connection, null); |
| 320 console.timeStamp("Main._mainTargetCreated"); | 320 console.timeStamp("Main._mainTargetCreated"); |
| 321 this._registerShortcuts(); | 321 this._registerShortcuts(); |
| 322 | 322 |
| 323 this._mainTarget.registerInspectorDispatcher(this); | 323 this._mainTarget.registerInspectorDispatcher(this); |
| 324 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.ReloadInspectedPage, this._reloadInspectedPage, this); | 324 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.ReloadInspectedPage, this._reloadInspectedPage, this); |
| 325 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); | 325 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 * @return {?Element} | 1110 * @return {?Element} |
| 1111 */ | 1111 */ |
| 1112 settingElement: function() | 1112 settingElement: function() |
| 1113 { | 1113 { |
| 1114 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1114 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1115 } | 1115 } |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 | 1118 |
| 1119 new WebInspector.Main(); | 1119 new WebInspector.Main(); |
| OLD | NEW |