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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js

Issue 2408203007: DevTools: teach network UISourceCodes to return metadata (Closed)
Patch Set: address comments Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
index be868e01f19c9ee976a542492de58852c7e3dd26..8f7686b5eb2cb8aeb0b548dd2cd07871e0ed1021 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMap.js
@@ -108,6 +108,12 @@ WebInspector.SourceMap.prototype = {
sourceContentProvider: function(sourceURL, contentType) { },
/**
+ * @param {string} sourceURL
+ * @return {?string}
+ */
+ embeddedContentByURL: function(sourceURL) { },
+
+ /**
* @param {number} lineNumber in compiled resource
* @param {number} columnNumber in compiled resource
* @return {?WebInspector.SourceMapEntry}
@@ -265,6 +271,18 @@ WebInspector.TextSourceMap.prototype = {
/**
* @override
+ * @param {string} sourceURL
+ * @return {?string}
+ */
+ embeddedContentByURL: function(sourceURL)
+ {
+ if (!this._sourceInfos.has(sourceURL))
+ return null;
+ return this._sourceInfos.get(sourceURL).content;
+ },
+
+ /**
+ * @override
* @return {boolean}
*/
editable: function()
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/ResourceTreeModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698