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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 /** | 283 /** |
284 * @param {!WebInspector.Event} event | 284 * @param {!WebInspector.Event} event |
285 */ | 285 */ |
286 function onDisconnected(event) | 286 function onDisconnected(event) |
287 { | 287 { |
288 if (WebInspector._disconnectedScreenWithReasonWasShown) | 288 if (WebInspector._disconnectedScreenWithReasonWasShown) |
289 return; | 289 return; |
290 WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason)
; | 290 WebInspector.RemoteDebuggingTerminatedScreen.show(event.data.reason)
; |
291 } | 291 } |
292 | 292 |
293 var capabilities = WebInspector.Target.Capability.Browser | WebInspector
.Target.Capability.JS | WebInspector.Target.Capability.Network | WebInspector.Ta
rget.Capability.Worker | WebInspector.Target.Capability.DOM; | 293 var capabilities = |
| 294 WebInspector.Target.Capability.Browser | WebInspector.Target.Capabil
ity.DOM | |
| 295 WebInspector.Target.Capability.JS | WebInspector.Target.Capability.L
og | |
| 296 WebInspector.Target.Capability.Network | WebInspector.Target.Capabil
ity.Worker; |
294 if (Runtime.queryParam("isSharedWorker")) | 297 if (Runtime.queryParam("isSharedWorker")) |
295 capabilities = WebInspector.Target.Capability.Browser | WebInspector
.Target.Capability.Network | WebInspector.Target.Capability.Worker; | 298 capabilities = |
| 299 WebInspector.Target.Capability.Browser | WebInspector.Target.Cap
ability.Log | |
| 300 WebInspector.Target.Capability.Network | WebInspector.Target.Cap
ability.Worker; |
296 else if (Runtime.queryParam("v8only")) | 301 else if (Runtime.queryParam("v8only")) |
297 capabilities = WebInspector.Target.Capability.JS; | 302 capabilities = WebInspector.Target.Capability.JS; |
298 | 303 |
299 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.
UIString("Main"), capabilities, connection, null); | 304 this._mainTarget = WebInspector.targetManager.createTarget(WebInspector.
UIString("Main"), capabilities, connection, null); |
300 console.timeStamp("Main._mainTargetCreated"); | 305 console.timeStamp("Main._mainTargetCreated"); |
301 this._registerShortcuts(); | 306 this._registerShortcuts(); |
302 | 307 |
303 this._mainTarget.registerInspectorDispatcher(this); | 308 this._mainTarget.registerInspectorDispatcher(this); |
304 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.ReloadInspectedPage, this._reloadInspectedPage, this); | 309 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.ReloadInspectedPage, this._reloadInspectedPage, this); |
305 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); | 310 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.E
vents.EvaluateForTestInFrontend, this._evaluateForTestInFrontend, this); |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 * @override | 1098 * @override |
1094 * @return {?Element} | 1099 * @return {?Element} |
1095 */ | 1100 */ |
1096 settingElement: function() | 1101 settingElement: function() |
1097 { | 1102 { |
1098 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1103 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
1099 } | 1104 } |
1100 } | 1105 } |
1101 | 1106 |
1102 new WebInspector.Main(); | 1107 new WebInspector.Main(); |
OLD | NEW |