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