| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerWasEnabled, this._de
buggerWasEnabled, this); | 110 SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerWasEnabled, this._de
buggerWasEnabled, this); |
| 111 SDK.targetManager.addModelListener( | 111 SDK.targetManager.addModelListener( |
| 112 SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerPaused, this._debugg
erPaused, this); | 112 SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerPaused, this._debugg
erPaused, this); |
| 113 SDK.targetManager.addModelListener( | 113 SDK.targetManager.addModelListener( |
| 114 SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerResumed, | 114 SDK.DebuggerModel, SDK.DebuggerModel.Events.DebuggerResumed, |
| 115 (event) => this._debuggerResumed(/** @type {!SDK.DebuggerModel} */ (even
t.data))); | 115 (event) => this._debuggerResumed(/** @type {!SDK.DebuggerModel} */ (even
t.data))); |
| 116 SDK.targetManager.addModelListener( | 116 SDK.targetManager.addModelListener( |
| 117 SDK.DebuggerModel, SDK.DebuggerModel.Events.GlobalObjectCleared, | 117 SDK.DebuggerModel, SDK.DebuggerModel.Events.GlobalObjectCleared, |
| 118 (event) => this._debuggerResumed(/** @type {!SDK.DebuggerModel} */ (even
t.data))); | 118 (event) => this._debuggerResumed(/** @type {!SDK.DebuggerModel} */ (even
t.data))); |
| 119 SDK.targetManager.addModelListener( | 119 SDK.targetManager.addModelListener( |
| 120 SDK.SubTargetsManager, SDK.SubTargetsManager.Events.PendingTargetAdded,
this._pendingTargetAdded, this); | 120 SDK.SubTargetsManager, SDK.SubTargetsManager.Events.AvailableNodeTargets
Changed, |
| 121 this._availableNodeTargetsChanged, this); |
| 121 new Sources.WorkspaceMappingTip(this, this._workspace); | 122 new Sources.WorkspaceMappingTip(this, this._workspace); |
| 122 Extensions.extensionServer.addEventListener( | 123 Extensions.extensionServer.addEventListener( |
| 123 Extensions.ExtensionServer.Events.SidebarPaneAdded, this._extensionSideb
arPaneAdded, this); | 124 Extensions.ExtensionServer.Events.SidebarPaneAdded, this._extensionSideb
arPaneAdded, this); |
| 124 Components.DataSaverInfobar.maybeShowInPanel(this); | 125 Components.DataSaverInfobar.maybeShowInPanel(this); |
| 125 SDK.targetManager.observeTargets(this); | 126 SDK.targetManager.observeTargets(this); |
| 126 } | 127 } |
| 127 | 128 |
| 128 /** | 129 /** |
| 129 * @return {!Sources.SourcesPanel} | 130 * @return {!Sources.SourcesPanel} |
| 130 */ | 131 */ |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 this._showThreadsIfNeeded(); | 164 this._showThreadsIfNeeded(); |
| 164 } | 165 } |
| 165 | 166 |
| 166 /** | 167 /** |
| 167 * @override | 168 * @override |
| 168 * @param {!SDK.Target} target | 169 * @param {!SDK.Target} target |
| 169 */ | 170 */ |
| 170 targetRemoved(target) { | 171 targetRemoved(target) { |
| 171 } | 172 } |
| 172 | 173 |
| 173 _pendingTargetAdded() { | 174 _availableNodeTargetsChanged() { |
| 174 this._showThreadsIfNeeded(); | 175 this._showThreadsIfNeeded(); |
| 175 } | 176 } |
| 176 | 177 |
| 177 _showThreadsIfNeeded() { | 178 _showThreadsIfNeeded() { |
| 178 if (Sources.ThreadsSidebarPane.shouldBeShown() && !this._threadsSidebarPane)
{ | 179 if (Sources.ThreadsSidebarPane.shouldBeShown() && !this._threadsSidebarPane)
{ |
| 179 this._threadsSidebarPane = /** @type {!UI.View} */ (UI.viewManager.view('s
ources.threads')); | 180 this._threadsSidebarPane = /** @type {!UI.View} */ (UI.viewManager.view('s
ources.threads')); |
| 180 if (this._sidebarPaneStack) { | 181 if (this._sidebarPaneStack) { |
| 181 this._sidebarPaneStack.showView( | 182 this._sidebarPaneStack.showView( |
| 182 this._threadsSidebarPane, this._splitWidget.isVertical() ? this._wat
chSidebarPane : this._callstackPane); | 183 this._threadsSidebarPane, this._splitWidget.isVertical() ? this._wat
chSidebarPane : this._callstackPane); |
| 183 } | 184 } |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 */ | 1311 */ |
| 1311 willHide() { | 1312 willHide() { |
| 1312 UI.inspectorView.setDrawerMinimized(false); | 1313 UI.inspectorView.setDrawerMinimized(false); |
| 1313 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1314 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1314 } | 1315 } |
| 1315 | 1316 |
| 1316 _showViewInWrapper() { | 1317 _showViewInWrapper() { |
| 1317 this._view.show(this.element); | 1318 this._view.show(this.element); |
| 1318 } | 1319 } |
| 1319 }; | 1320 }; |
| OLD | NEW |