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

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

Issue 2869293002: DevTools: make CompilerScriptMapping / SASSSourceMapping manage UISourceCodes (Closed)
Patch Set: Created 3 years, 7 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/NavigatorView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
index 79421682d8e36ed8107f2693ae59e011a17df0b1..0164e037d997d67a95de72f8e8c9536704aa328c 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js
@@ -74,6 +74,8 @@ Sources.NavigatorView = class extends UI.VBox {
SDK.targetManager.observeTargets(this);
this._resetWorkspace(Workspace.workspace);
this._workspace.uiSourceCodes().forEach(this._addUISourceCode.bind(this));
+ Bindings.networkProjectManager.addEventListener(
+ Bindings.NetworkProjectManager.Events.FrameAttributionChanged, this._frameAttributionChanged, this);
}
/**
@@ -241,6 +243,15 @@ Sources.NavigatorView = class extends UI.VBox {
return !uiSourceCode.project().isServiceProject();
}
+ /**
+ * @param {!Common.Event} event
+ */
+ _frameAttributionChanged(event) {
+ var uiSourceCode = /** @type {!Workspace.UISourceCode} */ (event.data);
+ this._removeUISourceCode(uiSourceCode);
dgozman 2017/05/10 18:10:33 This is not very efficient if UISourceCode gets ma
lushnikov 2017/05/10 22:24:32 Done.
+ this._addUISourceCode(uiSourceCode);
+ }
+
/**
* @param {!Workspace.UISourceCode} uiSourceCode
*/

Powered by Google App Engine
This is Rietveld 408576698