OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 * @param {string} query | 697 * @param {string} query |
698 * @param {boolean} caseSensitive | 698 * @param {boolean} caseSensitive |
699 * @param {boolean} isRegex | 699 * @param {boolean} isRegex |
700 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal
lback | 700 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal
lback |
701 */ | 701 */ |
702 searchInContent: function(query, caseSensitive, isRegex, callback) | 702 searchInContent: function(query, caseSensitive, isRegex, callback) |
703 { | 703 { |
704 callback([]); | 704 callback([]); |
705 } | 705 } |
706 } | 706 } |
| 707 |
| 708 /** |
| 709 * @constructor |
| 710 * @param {!WebInspector.UISourceCode.Message.Level} level |
| 711 * @param {string} text |
| 712 * @param {number} lineNumber |
| 713 * @param {number=} columnNumber |
| 714 */ |
| 715 WebInspector.UISourceCode.Message = function(level, text, lineNumber, columnNumb
er) |
| 716 { |
| 717 this._text = text; |
| 718 this._level = level; |
| 719 this._lineNumber = lineNumber; |
| 720 this._columnNumber = columnNumber; |
| 721 } |
| 722 |
| 723 /** |
| 724 * @enum {string} |
| 725 */ |
| 726 WebInspector.UISourceCode.Message.Level = { |
| 727 Error: "Error", |
| 728 Warning: "Warning" |
| 729 } |
| 730 |
| 731 WebInspector.UISourceCode.Message.prototype = { |
| 732 /** |
| 733 * @return {string} |
| 734 */ |
| 735 text: function() |
| 736 { |
| 737 return this._text; |
| 738 }, |
| 739 |
| 740 /** |
| 741 * @return {!WebInspector.UISourceCode.Message.Level} |
| 742 */ |
| 743 level: function() |
| 744 { |
| 745 return this._level; |
| 746 }, |
| 747 |
| 748 /** |
| 749 * @return {number} |
| 750 */ |
| 751 lineNumber: function() |
| 752 { |
| 753 return this._lineNumber; |
| 754 }, |
| 755 |
| 756 /** |
| 757 * @return {(number|undefined)} |
| 758 */ |
| 759 columnNumber: function() |
| 760 { |
| 761 return this._columnNumber; |
| 762 }, |
| 763 |
| 764 /** |
| 765 * @param {!WebInspector.UISourceCode.Message} another |
| 766 * @return {boolean} |
| 767 */ |
| 768 isEqual: function(another) |
| 769 { |
| 770 return this.text() === another.text() && this.level() === another.level(
) && this.lineNumber() === another.lineNumber() && this.columnNumber() === anoth
er.columnNumber(); |
| 771 } |
| 772 } |
OLD | NEW |