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

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

Issue 1416793005: Devtools: API To set the red/yellow squiggles for a file via DI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 b712caec39202e087977898903fd4721db843ef4..7c127321795aad78dd446e544c2cf8ab7d35a624 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js
@@ -704,3 +704,70 @@ WebInspector.Revision.prototype = {
callback([]);
}
}
+
+/**
+ * @constructor
+ * @param {string} text
+ * @param {string} kind
+ * @param {!WebInspector.TextRange} location
+ */
+WebInspector.UISourceCodeMessage = function(text, kind, location) {
pfeldman 2015/10/26 18:08:49 Lets store a collection of these on the UISourceCo
wes 2015/10/26 22:16:32 Acknowledged.
+ this._text = text;
+ this._kind = kind;
+ this._location = location;
+}
+
+WebInspector.UISourceCodeMessage.prototype = {
+ /**
+ * @return {string}
+ */
+ text: function()
+ {
+ return this._text;
+ },
+
+ /**
+ * @return {string}
+ */
+ kind: function()
+ {
+ return this._kind;
+ },
+
+ /**
+ * @return {!WebInspector.TextRange}
+ */
+ location: function()
+ {
+ return this._location;
+ }
+}
+
+/**
+ * @constructor
+ * @param {!WebInspector.UISourceCode} source
+ * @param {!Array<!WebInspector.UISourceCodeMessage>} messages
+ */
+WebInspector.UISourceCodeMessages = function(source, messages)
+{
+ this._source = source;
+ this._messages = messages;
+}
+
+WebInspector.UISourceCodeMessages.prototype = {
+ /**
+ * @return {!WebInspector.UISourceCode}
+ */
+ source: function()
+ {
+ return this._source;
+ },
+
+ /**
+ * @return {!Array<!WebInspector.UISourceCodeMessage>}
+ */
+ messages: function()
+ {
+ return this._messages;
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698