| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 this.sidebarPanes.callstack = new WebInspector.CallStackSidebarPane(); | 79 this.sidebarPanes.callstack = new WebInspector.CallStackSidebarPane(); |
| 80 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa
ne.Events.CallFrameSelected, this._callFrameSelectedInSidebar.bind(this)); | 80 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa
ne.Events.CallFrameSelected, this._callFrameSelectedInSidebar.bind(this)); |
| 81 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(th
is)); | 81 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(th
is)); |
| 82 | 82 |
| 83 this.sidebarPanes.scopechain = new WebInspector.ScopeChainSidebarPane(); | 83 this.sidebarPanes.scopechain = new WebInspector.ScopeChainSidebarPane(); |
| 84 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide
barPane(WebInspector.breakpointManager, this.showUISourceCode.bind(this)); | 84 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide
barPane(WebInspector.breakpointManager, this.showUISourceCode.bind(this)); |
| 85 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); | 85 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); |
| 86 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan
e(); | 86 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan
e(); |
| 87 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB
reakpointsSidebarPane(); | 87 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB
reakpointsSidebarPane(); |
| 88 | 88 |
| 89 if (!WebInspector.isWorkerFrontend() && !WebInspector.experimentsSettings.wo
rkersInMainWindow.isEnabled()) | |
| 90 this.sidebarPanes.workerList = new WebInspector.WorkersSidebarPane(); | |
| 91 | |
| 92 this._extensionSidebarPanes = []; | 89 this._extensionSidebarPanes = []; |
| 93 this._installDebuggerSidebarController(); | 90 this._installDebuggerSidebarController(); |
| 94 | 91 |
| 95 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); | 92 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); |
| 96 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); | 93 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); |
| 97 this._dockSideChanged(); | 94 this._dockSideChanged(); |
| 98 | 95 |
| 99 this._updateDebuggerButtons(); | 96 this._updateDebuggerButtons(); |
| 100 this._pauseOnExceptionEnabledChanged(); | 97 this._pauseOnExceptionEnabledChanged(); |
| 101 WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._pauseO
nExceptionEnabledChanged, this); | 98 WebInspector.settings.pauseOnExceptionEnabled.addChangeListener(this._pauseO
nExceptionEnabledChanged, this); |
| (...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 */ | 1346 */ |
| 1350 handleAction: function() | 1347 handleAction: function() |
| 1351 { | 1348 { |
| 1352 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); | 1349 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); |
| 1353 if (!panel) | 1350 if (!panel) |
| 1354 return false; | 1351 return false; |
| 1355 panel.togglePause(); | 1352 panel.togglePause(); |
| 1356 return true; | 1353 return true; |
| 1357 } | 1354 } |
| 1358 } | 1355 } |
| OLD | NEW |