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

Side by Side 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 unified diff | Download patch
OLDNEW
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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 * @param {string} query 722 * @param {string} query
723 * @param {boolean} caseSensitive 723 * @param {boolean} caseSensitive
724 * @param {boolean} isRegex 724 * @param {boolean} isRegex
725 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback 725 * @param {function(!Array.<!WebInspector.ContentProvider.SearchMatch>)} cal lback
726 */ 726 */
727 searchInContent: function(query, caseSensitive, isRegex, callback) 727 searchInContent: function(query, caseSensitive, isRegex, callback)
728 { 728 {
729 callback([]); 729 callback([]);
730 } 730 }
731 } 731 }
732
733 /**
734 * @constructor
735 * @param {string} text
736 * @param {string} kind
737 * @param {{startLine: number, startColumn: number, endLine: number, endColumn: number}} location
738 */
739 WebInspector.UISourceCodeMessage = function(text, kind, location) {
740 this._text = text;
741 this._kind = kind;
742 this._location = location;
pfeldman 2015/10/21 23:47:53 Range?
wes 2015/10/23 20:35:30 Acknowledged.
743 }
744
745 WebInspector.UISourceCodeMessage.prototype = {
746 /**
747 * @return {string}
748 */
749 text: function() {
pfeldman 2015/10/21 23:47:53 { goes next line.
wes 2015/10/23 20:35:30 Acknowledged.
750 return this._text;
751 },
752
753 /**
754 * @return {string}
755 */
756 kind: function() {
757 return this._kind;
758 },
759
760 /**
761 * @return {{startLine: number, startColumn: number, endLine: number, endCol umn: number}}
762 */
763 location: function() {
764 return this._location;
765 }
766 }
767
768 /**
769 * @constructor
770 * @param {!WebInspector.UISourceCode} source
771 * @param {!Array<!WebInspector.UISourceCodeMessage>} messages
772 */
773 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
774 {
775 this._source = source;
776 this._messages = messages;
777 }
778
779 WebInspector.UISourceCodeMessages.prototype = {
780 /**
781 * @return {!WebInspector.UISourceCode}
782 */
783 source: function() {
784 return this._source;
785 },
786
787 /**
788 * @return {!Array<!WebInspector.UISourceCodeMessage>}
789 */
790 messages: function() {
791 return this._messages;
792 }
793 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698