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

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

Issue 1427653002: DevTools: move ui messages from SourceFrame to UISourceCodeFrame (step1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.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/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..700e49be832ff3b5337fa1282942f4107d146bd3 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,69 @@ WebInspector.Revision.prototype = {
callback([]);
}
}
+
+/**
+ * @constructor
+ * @param {!WebInspector.UISourceCode.Message.Level} level
+ * @param {string} text
+ * @param {number} lineNumber
+ * @param {number=} columnNumber
+ */
+WebInspector.UISourceCode.Message = function(level, text, lineNumber, columnNumber)
+{
+ this._text = text;
+ this._level = level;
+ this._lineNumber = lineNumber;
+ this._columnNumber = columnNumber;
+}
+
+/**
+ * @enum {string}
+ */
+WebInspector.UISourceCode.Message.Level = {
+ Error: "Error",
+ Warning: "Warning"
+}
+
+WebInspector.UISourceCode.Message.prototype = {
+ /**
+ * @return {string}
+ */
+ text: function()
+ {
+ return this._text;
+ },
+
+ /**
+ * @return {!WebInspector.UISourceCode.Message.Level}
+ */
+ level: function()
+ {
+ return this._level;
+ },
+
+ /**
+ * @return {number}
+ */
+ lineNumber: function()
+ {
+ return this._lineNumber;
+ },
+
+ /**
+ * @return {(number|undefined)}
+ */
+ columnNumber: function()
+ {
+ return this._columnNumber;
+ },
+
+ /**
+ * @param {!WebInspector.UISourceCode.Message} another
+ * @return {boolean}
+ */
+ isEqual: function(another)
+ {
+ return this.text() === another.text() && this.level() === another.level() && this.lineNumber() === another.lineNumber() && this.columnNumber() === another.columnNumber();
+ }
+}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/UISourceCodeFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698