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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js

Issue 2536273003: [DevTools] Remove Workspace.projectTypes enum part1. (Closed)
Patch Set: Created 4 years, 1 month 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/bindings/DefaultScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
index 8e8f02875824e05c2f5c335ead86265a6fcdc728..48eca126c574e7e3f87f6a56c93bbb7e8b4f2250 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/DefaultScriptMapping.js
@@ -67,6 +67,14 @@ Bindings.DefaultScriptMapping = class {
}
/**
+ * @param {!Workspace.UISourceCode} uiSourceCode
+ * @return {boolean}
+ */
+ static isDebuggerUISourceCode(uiSourceCode) {
+ return uiSourceCode.project().type() === Workspace.projectTypes.Debugger;
+ }
+
+ /**
* @override
* @param {!SDK.DebuggerModel.Location} rawLocation
* @return {!Workspace.UILocation}

Powered by Google App Engine
This is Rietveld 408576698