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 {string} text | |
711 * @param {string} kind | |
712 * @param {!WebInspector.TextRange} location | |
713 */ | |
714 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.
| |
715 this._text = text; | |
716 this._kind = kind; | |
717 this._location = location; | |
718 } | |
719 | |
720 WebInspector.UISourceCodeMessage.prototype = { | |
721 /** | |
722 * @return {string} | |
723 */ | |
724 text: function() | |
725 { | |
726 return this._text; | |
727 }, | |
728 | |
729 /** | |
730 * @return {string} | |
731 */ | |
732 kind: function() | |
733 { | |
734 return this._kind; | |
735 }, | |
736 | |
737 /** | |
738 * @return {!WebInspector.TextRange} | |
739 */ | |
740 location: function() | |
741 { | |
742 return this._location; | |
743 } | |
744 } | |
745 | |
746 /** | |
747 * @constructor | |
748 * @param {!WebInspector.UISourceCode} source | |
749 * @param {!Array<!WebInspector.UISourceCodeMessage>} messages | |
750 */ | |
751 WebInspector.UISourceCodeMessages = function(source, messages) | |
752 { | |
753 this._source = source; | |
754 this._messages = messages; | |
755 } | |
756 | |
757 WebInspector.UISourceCodeMessages.prototype = { | |
758 /** | |
759 * @return {!WebInspector.UISourceCode} | |
760 */ | |
761 source: function() | |
762 { | |
763 return this._source; | |
764 }, | |
765 | |
766 /** | |
767 * @return {!Array<!WebInspector.UISourceCodeMessage>} | |
768 */ | |
769 messages: function() | |
770 { | |
771 return this._messages; | |
772 } | |
773 } | |
OLD | NEW |