| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 this.sidebarPanes.callstack = new WebInspector.CallStackSidebarPane(); | 119 this.sidebarPanes.callstack = new WebInspector.CallStackSidebarPane(); |
| 120 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa
ne.Events.CallFrameSelected, this._callFrameSelectedInSidebar.bind(this)); | 120 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa
ne.Events.CallFrameSelected, this._callFrameSelectedInSidebar.bind(this)); |
| 121 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(th
is)); | 121 this.sidebarPanes.callstack.registerShortcuts(this.registerShortcuts.bind(th
is)); |
| 122 | 122 |
| 123 this.sidebarPanes.scopechain = new WebInspector.ScopeChainSidebarPane(); | 123 this.sidebarPanes.scopechain = new WebInspector.ScopeChainSidebarPane(); |
| 124 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide
barPane(WebInspector.breakpointManager, this.showUISourceCode.bind(this)); | 124 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide
barPane(WebInspector.breakpointManager, this.showUISourceCode.bind(this)); |
| 125 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); | 125 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); |
| 126 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan
e(); | 126 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan
e(); |
| 127 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB
reakpointsSidebarPane(); | 127 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB
reakpointsSidebarPane(); |
| 128 | 128 |
| 129 if (Capabilities.isMainFrontend) | 129 if (!WebInspector.isWorkerFrontend()) |
| 130 this.sidebarPanes.workerList = new WebInspector.WorkersSidebarPane(); | 130 this.sidebarPanes.workerList = new WebInspector.WorkersSidebarPane(); |
| 131 | 131 |
| 132 this._extensionSidebarPanes = []; | 132 this._extensionSidebarPanes = []; |
| 133 this._installDebuggerSidebarController(); | 133 this._installDebuggerSidebarController(); |
| 134 | 134 |
| 135 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); | 135 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); |
| 136 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); | 136 WebInspector.settings.splitVerticallyWhenDockedToRight.addChangeListener(thi
s._dockSideChanged.bind(this)); |
| 137 this._dockSideChanged(); | 137 this._dockSideChanged(); |
| 138 | 138 |
| 139 this._updateDebuggerButtons(); | 139 this._updateDebuggerButtons(); |
| (...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 */ | 1475 */ |
| 1476 handleAction: function() | 1476 handleAction: function() |
| 1477 { | 1477 { |
| 1478 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); | 1478 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); |
| 1479 if (!panel) | 1479 if (!panel) |
| 1480 return false; | 1480 return false; |
| 1481 panel.togglePause(); | 1481 panel.togglePause(); |
| 1482 return true; | 1482 return true; |
| 1483 } | 1483 } |
| 1484 } | 1484 } |
| OLD | NEW |