| 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 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 this._splitWidget.uninstallResizer(this._tabbedLocationHeader); | 1049 this._splitWidget.uninstallResizer(this._tabbedLocationHeader); |
| 1050 this._tabbedLocationHeader = null; | 1050 this._tabbedLocationHeader = null; |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 if (!vertically) { | 1053 if (!vertically) { |
| 1054 // Populate the rest of the stack. | 1054 // Populate the rest of the stack. |
| 1055 this._sidebarPaneStack.showView(scopeChainView); | 1055 this._sidebarPaneStack.showView(scopeChainView); |
| 1056 this._sidebarPaneStack.showView(jsBreakpoints); | 1056 this._sidebarPaneStack.showView(jsBreakpoints); |
| 1057 this._extensionSidebarPanesContainer = this._sidebarPaneStack; | 1057 this._extensionSidebarPanesContainer = this._sidebarPaneStack; |
| 1058 this.sidebarPaneView = vbox; | 1058 this.sidebarPaneView = vbox; |
| 1059 this._splitWidget.uninstallResizer(this._debugToolbar.element); | 1059 this._splitWidget.uninstallResizer(this._debugToolbar.gripElementForResize
()); |
| 1060 } else { | 1060 } else { |
| 1061 var splitWidget = new UI.SplitWidget(true, true, 'sourcesPanelDebuggerSide
barSplitViewState', 0.5); | 1061 var splitWidget = new UI.SplitWidget(true, true, 'sourcesPanelDebuggerSide
barSplitViewState', 0.5); |
| 1062 splitWidget.setMainWidget(vbox); | 1062 splitWidget.setMainWidget(vbox); |
| 1063 | 1063 |
| 1064 // Populate the left stack. | 1064 // Populate the left stack. |
| 1065 this._sidebarPaneStack.showView(jsBreakpoints); | 1065 this._sidebarPaneStack.showView(jsBreakpoints); |
| 1066 | 1066 |
| 1067 var tabbedLocation = UI.viewManager.createTabbedLocation(this._revealDebug
gerSidebar.bind(this)); | 1067 var tabbedLocation = UI.viewManager.createTabbedLocation(this._revealDebug
gerSidebar.bind(this)); |
| 1068 splitWidget.setSidebarWidget(tabbedLocation.tabbedPane()); | 1068 splitWidget.setSidebarWidget(tabbedLocation.tabbedPane()); |
| 1069 this._tabbedLocationHeader = tabbedLocation.tabbedPane().headerElement(); | 1069 this._tabbedLocationHeader = tabbedLocation.tabbedPane().headerElement(); |
| 1070 this._splitWidget.installResizer(this._tabbedLocationHeader); | 1070 this._splitWidget.installResizer(this._tabbedLocationHeader); |
| 1071 this._splitWidget.installResizer(this._debugToolbar.element); | 1071 this._splitWidget.installResizer(this._debugToolbar.gripElementForResize()
); |
| 1072 tabbedLocation.appendView(scopeChainView); | 1072 tabbedLocation.appendView(scopeChainView); |
| 1073 tabbedLocation.appendView(this._watchSidebarPane); | 1073 tabbedLocation.appendView(this._watchSidebarPane); |
| 1074 this._extensionSidebarPanesContainer = tabbedLocation; | 1074 this._extensionSidebarPanesContainer = tabbedLocation; |
| 1075 this.sidebarPaneView = splitWidget; | 1075 this.sidebarPaneView = splitWidget; |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 this._sidebarPaneStack.appendApplicableItems('sources-sidebar'); | 1078 this._sidebarPaneStack.appendApplicableItems('sources-sidebar'); |
| 1079 var extensionSidebarPanes = Extensions.extensionServer.sidebarPanes(); | 1079 var extensionSidebarPanes = Extensions.extensionServer.sidebarPanes(); |
| 1080 for (var i = 0; i < extensionSidebarPanes.length; ++i) | 1080 for (var i = 0; i < extensionSidebarPanes.length; ++i) |
| 1081 this._addExtensionSidebarPane(extensionSidebarPanes[i]); | 1081 this._addExtensionSidebarPane(extensionSidebarPanes[i]); |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1306 */ | 1306 */ |
| 1307 willHide() { | 1307 willHide() { |
| 1308 UI.inspectorView.setDrawerMinimized(false); | 1308 UI.inspectorView.setDrawerMinimized(false); |
| 1309 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1309 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1310 } | 1310 } |
| 1311 | 1311 |
| 1312 _showViewInWrapper() { | 1312 _showViewInWrapper() { |
| 1313 this._view.show(this.element); | 1313 this._view.show(this.element); |
| 1314 } | 1314 } |
| 1315 }; | 1315 }; |
| OLD | NEW |