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

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

Issue 1361863002: Devtools: API To set the red/yellow squiggles for a file via DI (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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: Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js
index 5c6597aff3557b60b93be09f899abedd25f386cc..b5feb54893467f15badf05249ff86850c0dcad58 100644
--- a/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/Source/devtools/front_end/workspace/UISourceCode.js
@@ -729,3 +729,65 @@ WebInspector.Revision.prototype = {
callback([]);
}
}
+
+/**
+ * @constructor
+ * @param {string} text
+ * @param {string} kind
+ * @param {{startLine: number, startColumn: number, endLine: number, endColumn: number}} location
+ */
+WebInspector.UISourceCodeMessage = function(text, kind, location) {
+ this._text = text;
+ this._kind = kind;
+ this._location = location;
pfeldman 2015/10/21 23:47:53 Range?
wes 2015/10/23 20:35:30 Acknowledged.
+}
+
+WebInspector.UISourceCodeMessage.prototype = {
+ /**
+ * @return {string}
+ */
+ text: function() {
pfeldman 2015/10/21 23:47:53 { goes next line.
wes 2015/10/23 20:35:30 Acknowledged.
+ return this._text;
+ },
+
+ /**
+ * @return {string}
+ */
+ kind: function() {
+ return this._kind;
+ },
+
+ /**
+ * @return {{startLine: number, startColumn: number, endLine: number, endColumn: number}}
+ */
+ location: function() {
+ return this._location;
+ }
+}
+
+/**
+ * @constructor
+ * @param {!WebInspector.UISourceCode} source
+ * @param {!Array<!WebInspector.UISourceCodeMessage>} messages
+ */
+WebInspector.UISourceCodeMessages = function(source, messages)
pfeldman 2015/10/21 23:47:53 Looks like unusual data structure. Why would you s
wes 2015/10/23 20:35:30 The source is how the source frame can lookup the
+{
+ 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