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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js

Issue 2417083002: DevTools: introduce WI.UISourceCode.requestMetadata() (Closed)
Patch Set: normalize test + address nit 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
Index: third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
index c6ddae8cd4a6b72ff2bfc1e65d87e64c14382963..3942369a391dd3a8caafedf3443b2cbb1603ca51 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -75,6 +75,14 @@ WebInspector.UISourceCode.Events = {
WebInspector.UISourceCode.prototype = {
/**
+ * @return {!Promise<?WebInspector.UISourceCodeMetadata>}
+ */
+ requestMetadata: function()
+ {
+ return this._project.requestMetadata(this);
+ },
+
+ /**
* @return {string}
*/
name: function()
@@ -963,3 +971,14 @@ WebInspector.UISourceCode.LineMarker.prototype = {
return this._data;
}
}
+
+/**
+ * @constructor
+ * @param {?Date} modificationTime
+ * @param {?number} contentSize
+ */
+WebInspector.UISourceCodeMetadata = function(modificationTime, contentSize)
+{
+ this.modificationTime = modificationTime;
+ this.contentSize = contentSize;
+}

Powered by Google App Engine
This is Rietveld 408576698