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

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

Issue 2384783003: DevTools: split Sources tree into Network and Filesystem trees. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
index b30b80917250322a04a23f068315e328c561a682..1b0f42b4d02daacf4bbb714b46524d2dc5186496 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js
@@ -67,7 +67,6 @@ WebInspector.SourcesPanel = function()
this._navigatorTabbedLocation = WebInspector.viewManager.createTabbedLocation(this._revealNavigatorSidebar.bind(this), "navigator-view", true);
var tabbedPane = this._navigatorTabbedLocation.tabbedPane();
tabbedPane.setMinimumSize(100, 25);
- tabbedPane.setShrinkableTabs(true);
lushnikov 2016/10/01 03:05:34 nicee
tabbedPane.element.classList.add("navigator-tabbed-pane");
var navigatorMenuButton = new WebInspector.ToolbarMenuButton(this._populateNavigatorMenu.bind(this), true);
navigatorMenuButton.setTitle(WebInspector.UIString("More options"));
@@ -359,6 +358,10 @@ WebInspector.SourcesPanel.prototype = {
*/
_revealInNavigator: function(uiSourceCode, skipReveal)
{
+ var binding = WebInspector.persistence.binding(uiSourceCode);
+ if (binding && binding.network === uiSourceCode)
+ uiSourceCode = binding.fileSystem;
+
var extensions = self.runtime.extensions(WebInspector.NavigatorView);
Promise.all(extensions.map(extension => extension.instance())).then(filterNavigators.bind(this));

Powered by Google App Engine
This is Rietveld 408576698