| 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 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 * @constructor | 651 * @constructor |
| 652 * @param {!WebInspector.UISourceCode} uiSourceCode | 652 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 653 * @param {number} lineNumber | 653 * @param {number} lineNumber |
| 654 * @param {number} columnNumber | 654 * @param {number} columnNumber |
| 655 */ | 655 */ |
| 656 WebInspector.UILocation = function(uiSourceCode, lineNumber, columnNumber) | 656 WebInspector.UILocation = function(uiSourceCode, lineNumber, columnNumber) |
| 657 { | 657 { |
| 658 this.uiSourceCode = uiSourceCode; | 658 this.uiSourceCode = uiSourceCode; |
| 659 this.lineNumber = lineNumber; | 659 this.lineNumber = lineNumber; |
| 660 this.columnNumber = columnNumber; | 660 this.columnNumber = columnNumber; |
| 661 this.isBlackboxed = false; |
| 661 } | 662 } |
| 662 | 663 |
| 663 WebInspector.UILocation.prototype = { | 664 WebInspector.UILocation.prototype = { |
| 664 /** | 665 /** |
| 665 * @return {string} | 666 * @return {string} |
| 666 */ | 667 */ |
| 667 linkText: function() | 668 linkText: function() |
| 668 { | 669 { |
| 669 var linkText = this.uiSourceCode.displayName(); | 670 var linkText = this.uiSourceCode.displayName(); |
| 670 if (typeof this.lineNumber === "number") | 671 if (typeof this.lineNumber === "number") |
| 671 linkText += ":" + (this.lineNumber + 1); | 672 linkText += ":" + (this.lineNumber + 1); |
| 672 return linkText; | 673 return linkText; |
| 673 }, | 674 }, |
| 674 | 675 |
| 675 /** | 676 /** |
| 676 * @return {string} | 677 * @return {string} |
| 677 */ | 678 */ |
| 678 id: function() | 679 id: function() |
| 679 { | 680 { |
| 680 return this.uiSourceCode.project().id() + ":" + this.uiSourceCode.url()
+ ":" + this.lineNumber + ":" + this.columnNumber; | 681 return this.uiSourceCode.project().id() + ":" + this.uiSourceCode.url()
+ ":" + this.lineNumber + ":" + this.columnNumber; |
| 681 }, | 682 }, |
| 682 | 683 |
| 683 /** | 684 /** |
| 684 * @return {string} | 685 * @return {string} |
| 685 */ | 686 */ |
| 686 toUIString: function() | 687 toUIString: function() |
| 687 { | 688 { |
| 688 return this.uiSourceCode.url() + ":" + (this.lineNumber + 1); | 689 return this.uiSourceCode.url() + ":" + (this.lineNumber + 1); |
| 689 } | 690 }, |
| 691 |
| 692 /** |
| 693 * @param {boolean} isBlackboxed |
| 694 */ |
| 695 setBlackboxed: function(isBlackboxed) |
| 696 { |
| 697 this.isBlackboxed = isBlackboxed; |
| 698 }, |
| 690 } | 699 } |
| 691 | 700 |
| 692 /** | 701 /** |
| 693 * @constructor | 702 * @constructor |
| 694 * @implements {WebInspector.ContentProvider} | 703 * @implements {WebInspector.ContentProvider} |
| 695 * @param {!WebInspector.UISourceCode} uiSourceCode | 704 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 696 * @param {?string|undefined} content | 705 * @param {?string|undefined} content |
| 697 * @param {!Date} timestamp | 706 * @param {!Date} timestamp |
| 698 */ | 707 */ |
| 699 WebInspector.Revision = function(uiSourceCode, content, timestamp) | 708 WebInspector.Revision = function(uiSourceCode, content, timestamp) |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 isEqual: function(another) | 873 isEqual: function(another) |
| 865 { | 874 { |
| 866 return this._uiSourceCode === another._uiSourceCode && this.text() === a
nother.text() && this.level() === another.level() && this.range().equal(another.
range()); | 875 return this._uiSourceCode === another._uiSourceCode && this.text() === a
nother.text() && this.level() === another.level() && this.range().equal(another.
range()); |
| 867 }, | 876 }, |
| 868 | 877 |
| 869 remove: function() | 878 remove: function() |
| 870 { | 879 { |
| 871 this._uiSourceCode.removeMessage(this); | 880 this._uiSourceCode.removeMessage(this); |
| 872 } | 881 } |
| 873 } | 882 } |
| OLD | NEW |