Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)
Patch Set: fixes Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698