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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa
ne.Events.RevealHiddenCallFrames, this._hiddenCallFramesRevealedInSidebar.bind(t
his)); | 80 this.sidebarPanes.callstack.addEventListener(WebInspector.CallStackSidebarPa
ne.Events.RevealHiddenCallFrames, this._hiddenCallFramesRevealedInSidebar.bind(t
his)); |
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 if (Runtime.experiments.isEnabled("serviceWorkersInPageFrontend")) | 84 if (Runtime.experiments.isEnabled("serviceWorkersInPageFrontend")) |
85 this.sidebarPanes.serviceWorkers = new WebInspector.ServiceWorkersSideba
rPane(); | 85 this.sidebarPanes.serviceWorkers = new WebInspector.ServiceWorkersSideba
rPane(); |
86 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide
barPane(WebInspector.breakpointManager, this.showUISourceCode.bind(this)); | 86 this.sidebarPanes.jsBreakpoints = new WebInspector.JavaScriptBreakpointsSide
barPane(WebInspector.breakpointManager, this.showUISourceCode.bind(this)); |
87 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); | 87 this.sidebarPanes.domBreakpoints = WebInspector.domBreakpointsSidebarPane.cr
eateProxy(this); |
88 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan
e(); | 88 this.sidebarPanes.xhrBreakpoints = new WebInspector.XHRBreakpointsSidebarPan
e(); |
89 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB
reakpointsSidebarPane(); | 89 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerB
reakpointsSidebarPane(); |
| 90 this.sidebarPanes.objectEventListeners = new WebInspector.ObjectEventListene
rsSidebarPane(); |
90 if (Runtime.experiments.isEnabled("stepIntoAsync")) | 91 if (Runtime.experiments.isEnabled("stepIntoAsync")) |
91 this.sidebarPanes.asyncOperationBreakpoints = new WebInspector.AsyncOper
ationsSidebarPane(); | 92 this.sidebarPanes.asyncOperationBreakpoints = new WebInspector.AsyncOper
ationsSidebarPane(); |
92 | 93 |
93 this._lastSelectedTabSetting = WebInspector.settings.createLocalSetting("las
tSelectedSourcesSidebarPaneTab", this.sidebarPanes.scopechain.title()); | 94 this._lastSelectedTabSetting = WebInspector.settings.createLocalSetting("las
tSelectedSourcesSidebarPaneTab", this.sidebarPanes.scopechain.title()); |
94 | 95 |
95 this._installDebuggerSidebarController(); | 96 this._installDebuggerSidebarController(); |
96 | 97 |
97 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); | 98 WebInspector.dockController.addEventListener(WebInspector.DockController.Eve
nts.DockSideChanged, this._dockSideChanged.bind(this)); |
98 WebInspector.moduleSetting("splitVerticallyWhenDockedToRight").addChangeList
ener(this._dockSideChanged.bind(this)); | 99 WebInspector.moduleSetting("splitVerticallyWhenDockedToRight").addChangeList
ener(this._dockSideChanged.bind(this)); |
99 this._dockSideChanged(); | 100 this._dockSideChanged(); |
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 var splitWidget = new WebInspector.SplitWidget(true, true, "sourcesP
anelDebuggerSidebarSplitViewState", 0.5); | 1145 var splitWidget = new WebInspector.SplitWidget(true, true, "sourcesP
anelDebuggerSidebarSplitViewState", 0.5); |
1145 splitWidget.setMainWidget(vbox); | 1146 splitWidget.setMainWidget(vbox); |
1146 | 1147 |
1147 // Populate the left stack. | 1148 // Populate the left stack. |
1148 sidebarPaneStack.addPane(this.sidebarPanes.threads); | 1149 sidebarPaneStack.addPane(this.sidebarPanes.threads); |
1149 sidebarPaneStack.addPane(this.sidebarPanes.callstack); | 1150 sidebarPaneStack.addPane(this.sidebarPanes.callstack); |
1150 sidebarPaneStack.addPane(this.sidebarPanes.jsBreakpoints); | 1151 sidebarPaneStack.addPane(this.sidebarPanes.jsBreakpoints); |
1151 sidebarPaneStack.addPane(this.sidebarPanes.domBreakpoints); | 1152 sidebarPaneStack.addPane(this.sidebarPanes.domBreakpoints); |
1152 sidebarPaneStack.addPane(this.sidebarPanes.xhrBreakpoints); | 1153 sidebarPaneStack.addPane(this.sidebarPanes.xhrBreakpoints); |
1153 sidebarPaneStack.addPane(this.sidebarPanes.eventListenerBreakpoints)
; | 1154 sidebarPaneStack.addPane(this.sidebarPanes.eventListenerBreakpoints)
; |
| 1155 sidebarPaneStack.addPane(this.sidebarPanes.objectEventListeners); |
1154 if (Runtime.experiments.isEnabled("stepIntoAsync")) | 1156 if (Runtime.experiments.isEnabled("stepIntoAsync")) |
1155 sidebarPaneStack.addPane(this.sidebarPanes.asyncOperationBreakpo
ints); | 1157 sidebarPaneStack.addPane(this.sidebarPanes.asyncOperationBreakpo
ints); |
1156 | 1158 |
1157 var tabbedPane = new WebInspector.SidebarTabbedPane(); | 1159 var tabbedPane = new WebInspector.SidebarTabbedPane(); |
1158 splitWidget.setSidebarWidget(tabbedPane); | 1160 splitWidget.setSidebarWidget(tabbedPane); |
1159 tabbedPane.addPane(this.sidebarPanes.scopechain); | 1161 tabbedPane.addPane(this.sidebarPanes.scopechain); |
1160 tabbedPane.addPane(this.sidebarPanes.watchExpressions); | 1162 tabbedPane.addPane(this.sidebarPanes.watchExpressions); |
1161 if (this.sidebarPanes.serviceWorkers) | 1163 if (this.sidebarPanes.serviceWorkers) |
1162 tabbedPane.addPane(this.sidebarPanes.serviceWorkers); | 1164 tabbedPane.addPane(this.sidebarPanes.serviceWorkers); |
1163 tabbedPane.selectTab(this._lastSelectedTabSetting.get()); | 1165 tabbedPane.selectTab(this._lastSelectedTabSetting.get()); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1431 WebInspector.SourcesPanelFactory.prototype = { | 1433 WebInspector.SourcesPanelFactory.prototype = { |
1432 /** | 1434 /** |
1433 * @override | 1435 * @override |
1434 * @return {!WebInspector.Panel} | 1436 * @return {!WebInspector.Panel} |
1435 */ | 1437 */ |
1436 createPanel: function() | 1438 createPanel: function() |
1437 { | 1439 { |
1438 return WebInspector.SourcesPanel.instance(); | 1440 return WebInspector.SourcesPanel.instance(); |
1439 } | 1441 } |
1440 } | 1442 } |
OLD | NEW |