Chromium Code Reviews| 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; |
| + } |
| +} |