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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.PendingTargetAdded,
this._pendingTargetAdded, this); |
121 new Sources.WorkspaceMappingTip(this, this._workspace); | 121 new Sources.WorkspaceMappingTip(this, this._workspace); |
122 Extensions.extensionServer.addEventListener( | 122 Extensions.extensionServer.addEventListener( |
123 Extensions.ExtensionServer.Events.SidebarPaneAdded, this._extensionSideb
arPaneAdded, this); | 123 Extensions.ExtensionServer.Events.SidebarPaneAdded, this._extensionSideb
arPaneAdded, this); |
124 Components.DataSaverInfobar.maybeShowInPanel(this); | 124 Main.DataSaverInfobar.maybeShowInPanel(this); |
125 SDK.targetManager.observeTargets(this); | 125 SDK.targetManager.observeTargets(this); |
126 } | 126 } |
127 | 127 |
128 /** | 128 /** |
129 * @return {!Sources.SourcesPanel} | 129 * @return {!Sources.SourcesPanel} |
130 */ | 130 */ |
131 static instance() { | 131 static instance() { |
132 if (Sources.SourcesPanel._instance) | 132 if (Sources.SourcesPanel._instance) |
133 return Sources.SourcesPanel._instance; | 133 return Sources.SourcesPanel._instance; |
134 return /** @type {!Sources.SourcesPanel} */ (self.runtime.sharedInstance(Sou
rces.SourcesPanel)); | 134 return /** @type {!Sources.SourcesPanel} */ (self.runtime.sharedInstance(Sou
rces.SourcesPanel)); |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 */ | 1310 */ |
1311 willHide() { | 1311 willHide() { |
1312 UI.inspectorView.setDrawerMinimized(false); | 1312 UI.inspectorView.setDrawerMinimized(false); |
1313 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1313 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
1314 } | 1314 } |
1315 | 1315 |
1316 _showViewInWrapper() { | 1316 _showViewInWrapper() { |
1317 this._view.show(this.element); | 1317 this._view.show(this.element); |
1318 } | 1318 } |
1319 }; | 1319 }; |
OLD | NEW |